summaryrefslogtreecommitdiffstats
path: root/templates/annotated/menuapp1.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /templates/annotated/menuapp1.py
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'templates/annotated/menuapp1.py')
-rw-r--r--templates/annotated/menuapp1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/annotated/menuapp1.py b/templates/annotated/menuapp1.py
index 23184eb..0f0f3f5 100644
--- a/templates/annotated/menuapp1.py
+++ b/templates/annotated/menuapp1.py
@@ -43,7 +43,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL
+from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdeui import KMainWindow, KMessageBox
@@ -68,9 +68,9 @@ class MainWin (KMainWindow):
self.initStatusBar ()
def initMenus (self):
- # Create a QPopupMenu - all menus are "popup" menus
+ # Create a TQPopupMenu - all menus are "popup" menus
- fileMenu = QPopupMenu (self)
+ fileMenu = TQPopupMenu (self)
# This is the "simple" KDE-1.0 way. It is not suggested that this
# template actually be used in an application, but it's
@@ -116,7 +116,7 @@ class MainWin (KMainWindow):
self.menuBar ().insertItem (i18n ("&File"), fileMenu)
- editMenu = QPopupMenu (self)
+ editMenu = TQPopupMenu (self)
# "Edit" menu items
editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ())