diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-08 11:54:27 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-08 12:02:42 +0900 |
commit | 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa (patch) | |
tree | cf2ca395f0812f228baba1d7f2a79c5b91c56263 /examples/menu.py | |
parent | 456d0fb6a207e9c80593967f2e37ddd21d32f5a4 (diff) | |
download | pytqt-7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa.tar.gz pytqt-7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/menu.py')
-rwxr-xr-x | examples/menu.py | 4 |
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 ) |