diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:42 -0600 |
commit | 2df6bde18ab40472f2df8637cf6456cb80dc2329 (patch) | |
tree | 5a4362124ff46786fce835d2f1e7d583c92a5670 /templates/basic/menuapp3.py | |
parent | be6cfa4b990910e65e8d2f4f212eba3f7da6ee72 (diff) | |
download | pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.tar.gz pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'templates/basic/menuapp3.py')
-rw-r--r-- | templates/basic/menuapp3.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/basic/menuapp3.py b/templates/basic/menuapp3.py index cd46f81..ce0dfaf 100644 --- a/templates/basic/menuapp3.py +++ b/templates/basic/menuapp3.py @@ -43,16 +43,16 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, KShortcut -from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection +from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEShortcut +from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEActionCollection STATUSBAR_LEFT = 1 STATUSBAR_MIDDLE = 2 STATUSBAR_RIGHT = 3 -class MainWin (KMainWindow): +class MainWin (TDEMainWindow): def __init__ (self, *args): - apply (KMainWindow.__init__, (self,) + args) + apply (TDEMainWindow.__init__, (self,) + args) self.initActions () self.createGUI () @@ -80,7 +80,7 @@ class MainWin (KMainWindow): self.findAction = KStdAction.find (self.slotFind, self.actionCollection ()) self.findNextAction = KStdAction.findNext (self.slotFindNext, self.actionCollection ()) self.replaceAction = KStdAction.replace (self.slotReplace, self.actionCollection ()) - self.specialAction = KAction (i18n ("Special"), KShortcut.null (), self.slotSpecial, self.actionCollection (), "specialActionName") + self.specialAction = TDEAction (i18n ("Special"), TDEShortcut.null (), self.slotSpecial, self.actionCollection (), "specialActionName") def initStatusBar (self): self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) |