diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /templates/annotated/menuapp2.py | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'templates/annotated/menuapp2.py')
-rw-r--r-- | templates/annotated/menuapp2.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/annotated/menuapp2.py b/templates/annotated/menuapp2.py index 6a5e894..b3b3501 100644 --- a/templates/annotated/menuapp2.py +++ b/templates/annotated/menuapp2.py @@ -41,7 +41,7 @@ True = not False import sys -from qt import QPopupMenu, SIGNAL +from qt import TQPopupMenu, SIGNAL from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n from tdeui import KMainWindow, KMessageBox, KStdAction, KAction @@ -67,7 +67,7 @@ class MainWin (KMainWindow): # Create the status bar self.initStatusBar () - # Usings actions, only a single line is required + # Usings actions, only a single line is retquired # to enable/disable both the menu item and corresponding # toolbar button from anywhere in the program self.saveAction.setEnabled (False) @@ -112,15 +112,15 @@ class MainWin (KMainWindow): # or you can use KAction.setIcon to set/change the icon. You # can also add a tooltip with KAction.setToolTip - # This KAction constructor requires a QString, an accelerator (0 - # in this case), a slot, and a QObject (None in this case) + # This KAction constructor retquires a TQString, an accelerator (0 + # in this case), a slot, and a TQObject (None in this case) self.specialAction = KAction (i18n ("Special"), 0, self.slotSpecial, None) def initMenus (self): # plug the actions into the menus - fileMenu = QPopupMenu (self) + fileMenu = TQPopupMenu (self) self.newAction.plug (fileMenu) self.openAction.plug (fileMenu) fileMenu.insertSeparator () @@ -132,7 +132,7 @@ class MainWin (KMainWindow): self.quitAction.plug (fileMenu) self.menuBar ().insertItem (i18n ("&File"), fileMenu) - editMenu = QPopupMenu (self) + editMenu = TQPopupMenu (self) self.undoAction.plug (editMenu) self.redoAction.plug (editMenu) editMenu.insertSeparator () |