summaryrefslogtreecommitdiffstats
path: root/examples/menu.py
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-08 11:54:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-11 10:03:08 +0900
commit27f46d6031d41aa6ce071885a7e280e1097680e1 (patch)
treedbb592ad2f606c9a8e56ed6aa4f4f562c8928002 /examples/menu.py
parenta131499f339ae27686e9effc8088ebdf7bb77dde (diff)
downloadpytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.tar.gz
pytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa)
Diffstat (limited to 'examples/menu.py')
-rwxr-xr-xexamples/menu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/menu.py b/examples/menu.py
index f363195..ff3f9d9 100755
--- a/examples/menu.py
+++ b/examples/menu.py
@@ -131,7 +131,7 @@ class MenuExample( TQWidget ):
self.file.insertSeparator()
self.file.insertItem( "&Print", self.printer, TQt.CTRL+TQt.Key_P )
self.file.insertSeparator()
- self.file.insertItem( "E&xit", tqApp, SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
+ self.file.insertItem( "E&xit", tqApp, TQ_SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
self.edit = TQPopupMenu( self )
undoID = self.edit.insertItem( "&Undo", self.undo )
@@ -187,7 +187,7 @@ class MenuExample( TQWidget ):
self.label.setLineWidth( 1 )
self.label.setAlignment( TQt.AlignCenter )
- self.connect( self, PYSIGNAL( "explain" ), self.label, SLOT( "setText(const TQString &" ) )
+ self.connect( self, PYSIGNAL( "explain" ), self.label, TQ_SLOT( "setText(const TQString &" ) )
self.setMinimumSize( 100, 80 )
self.setFocusPolicy( TQWidget.ClickFocus )