summaryrefslogtreecommitdiffstats
path: root/examples/menudemo.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/menudemo.py')
-rw-r--r--examples/menudemo.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/examples/menudemo.py b/examples/menudemo.py
index 59931e8..c0eb60d 100644
--- a/examples/menudemo.py
+++ b/examples/menudemo.py
@@ -43,17 +43,17 @@ import sys
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
-from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, KIcon, KIconLoader, KShortcut
-from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
- KActionSeparator, KActionMenu, KWindowListMenu
+from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, KIcon, KIconLoader, TDEShortcut
+from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEToggleAction, TDEFontSizeAction, TDEFontAction, TDERadioAction,\
+ TDEActionSeparator, TDEActionMenu, KWindowListMenu
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.initMenus ()
@@ -81,37 +81,37 @@ 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 (), "special")
+ self.specialAction = TDEAction (i18n ("Special"), TDEShortcut.null (), self.slotSpecial, self.actionCollection (), "special")
# Demo menu items
- # KToggleAction has an isChecked member and emits the "toggle" signal
- self.toggle1Action = KToggleAction ("Toggle 1")
- self.toggle2Action = KToggleAction ("Toggle 2", KShortcut.null (), self.slotToggle2, None)
+ # TDEToggleAction has an isChecked member and emits the "toggle" signal
+ self.toggle1Action = TDEToggleAction ("Toggle 1")
+ self.toggle2Action = TDEToggleAction ("Toggle 2", TDEShortcut.null (), self.slotToggle2, None)
# A separator - create once/use everywhere
- self.separateAction = KActionSeparator ()
+ self.separateAction = TDEActionSeparator ()
# Font stuff in menus or toolbar
- self.fontAction = KFontAction ("Font")
- self.fontSizeAction = KFontSizeAction ("Font Size")
+ self.fontAction = TDEFontAction ("Font")
+ self.fontSizeAction = TDEFontSizeAction ("Font Size")
# Need to assign an icon to actionMenu below
icons = KIconLoader ()
iconSet = TQIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
- # Nested menus using KActions (also nested on toolbar)
- self.actionMenu = KActionMenu ("Action Menu")
+ # Nested menus using TDEActions (also nested on toolbar)
+ self.actionMenu = TDEActionMenu ("Action Menu")
self.actionMenu.setIconSet (iconSet)
self.actionMenu.insert (KStdAction.zoomIn (self.slotZoomIn, self.actionCollection ()))
self.actionMenu.insert (KStdAction.zoomOut (self.slotZoomOut, self.actionCollection ()))
# Doesn't work in KDE 2.1.1
-# self.radio1Action = KRadioAction ("Radio 1")
+# self.radio1Action = TDERadioAction ("Radio 1")
# self.radio1Action.setExclusiveGroup ("Radio")
-# self.radio2Action = KRadioAction ("Radio 2")
+# self.radio2Action = TDERadioAction ("Radio 2")
# self.radio2Action.setExclusiveGroup ("Radio")
-# self.radio3Action = KRadioAction ("Radio 3")
+# self.radio3Action = TDERadioAction ("Radio 3")
# self.radio3Action.setExclusiveGroup ("Radio")
def initMenus (self):