mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
pykde4: fix one of the examples
This commit is contained in:
parent
b765275f3b
commit
62271ed2d7
2 changed files with 1 additions and 5 deletions
|
@ -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 ------------------
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue