pykde4: fix one of the examples

This commit is contained in:
Ivailo Monev 2015-07-12 15:55:35 +03:00
parent b765275f3b
commit 62271ed2d7
2 changed files with 1 additions and 5 deletions

View file

@ -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 ------------------

View file

@ -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):