diff options
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) |