From 62271ed2d7e7dca50e5a68225bf032a6bd73edbe Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 12 Jul 2015 15:55:35 +0300 Subject: [PATCH] pykde4: fix one of the examples --- pykde4/examples/kpartsExamples/katepart.py | 2 +- pykde4/examples/kpartsExamples/konsolepart.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pykde4/examples/kpartsExamples/katepart.py b/pykde4/examples/kpartsExamples/katepart.py index c3c98347..c64fe052 100644 --- a/pykde4/examples/kpartsExamples/katepart.py +++ b/pykde4/examples/kpartsExamples/katepart.py @@ -15,7 +15,7 @@ class MainWindow (KMainWindow): self.resize(640, 480) factory = KLibrary("katepart").factory() - part = factory.create(self, "KatePart") + part = factory.createPart(self) self.setCentralWidget(part.widget()) #--------------- main ------------------ diff --git a/pykde4/examples/kpartsExamples/konsolepart.py b/pykde4/examples/kpartsExamples/konsolepart.py index 87e9ac14..97b3edf5 100644 --- a/pykde4/examples/kpartsExamples/konsolepart.py +++ b/pykde4/examples/kpartsExamples/konsolepart.py @@ -23,13 +23,9 @@ # and send it some things to do. import sys -# Uncomment this if you are doing development, and installing the -# work-in-progress here. -sys.path.insert(1,'/usr/local/lib/python2.7/site-packages') from PyKDE4.kterminal import KTerminal from PyQt4.QtCore import QStringList from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs, KPluginLoader, KService -from PyKDE4.kparts import KParts from PyKDE4.kdeui import * class MainWindow (KMainWindow):