summaryrefslogtreecommitdiffstats
path: root/examples/menudemo.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 /examples/menudemo.py
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'examples/menudemo.py')
-rw-r--r--examples/menudemo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/menudemo.py b/examples/menudemo.py
index b2b5603..8f605a2 100644
--- a/examples/menudemo.py
+++ b/examples/menudemo.py
@@ -41,7 +41,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL, QLabel, QIconSet
+from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
@@ -98,7 +98,7 @@ class MainWin (KMainWindow):
# Need to assign an icon to actionMenu below
icons = KIconLoader ()
- iconSet = QIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
+ iconSet = TQIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
# Nested menus using KActions (also nested on toolbar)
self.actionMenu = KActionMenu ("Action Menu")
@@ -115,7 +115,7 @@ class MainWin (KMainWindow):
# self.radio3Action.setExclusiveGroup ("Radio")
def initMenus (self):
- fileMenu = QPopupMenu (self)
+ fileMenu = TQPopupMenu (self)
self.newAction.plug (fileMenu)
self.openAction.plug (fileMenu)
fileMenu.insertSeparator ()
@@ -127,7 +127,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 ()
@@ -142,7 +142,7 @@ class MainWin (KMainWindow):
self.specialAction.plug (editMenu)
self.menuBar ().insertItem (i18n ("&Edit"), editMenu)
- demoMenu = QPopupMenu (self)
+ demoMenu = TQPopupMenu (self)
self.toggle1Action.plug (demoMenu)
self.toggle2Action.plug (demoMenu)
self.separateAction.plug (demoMenu)
@@ -196,7 +196,7 @@ class MainWin (KMainWindow):
# to the full width of the toolbar when the window is
# maximized (comment out the next two lines to see
# what happens)
- stretchlbl = QLabel ("", self.toolBar ())
+ stretchlbl = TQLabel ("", self.toolBar ())
self.toolBar ().setStretchableWidget (stretchlbl)