summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xexamples2/menu.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples2/menu.py b/examples2/menu.py
index b5c14d8..4b67156 100755
--- a/examples2/menu.py
+++ b/examples2/menu.py
@@ -143,7 +143,7 @@ class MenuExample( TQWidget ):
#printIcon = TQPixmap()
self.printer = TQPopupMenu( self )
- #CHECK_PTR( self.printer )
+ #TQ_CHECK_PTR( self.printer )
self.printer.insertTearOffHandle()
self.printer.insertItem( "&Print to printer", self.printDoc )
self.printer.insertItem( "Print to &file", self.file )
@@ -152,7 +152,7 @@ class MenuExample( TQWidget ):
self.printer.insertItem( "Printer &Setup", self.printerSetup )
self.file = TQPopupMenu( self )
- #CHECK_PTR( self.file );
+ #TQ_CHECK_PTR( self.file );
self.file.insertItem( self.p1, "&Open", self.open, TQt.CTRL+TQt.Key_O )
self.file.insertItem( self.p2, "&New", self.news, TQt.CTRL+TQt.Key_N )
self.file.insertItem( self.p3, "&Save", self.save, TQt.CTRL+TQt.Key_S )
@@ -163,14 +163,14 @@ class MenuExample( TQWidget ):
self.file.insertItem( "E&xit", tqApp, SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
self.edit = TQPopupMenu( self )
- #CHECK_PTR( self.edit )
+ #TQ_CHECK_PTR( self.edit )
undoID = self.edit.insertItem( "&Undo", self.undo )
redoID = self.edit.insertItem( "&Redo", self.redo )
self.edit.setItemEnabled( undoID, TRUE )
self.edit.setItemEnabled( redoID, FALSE )
self.options = TQPopupMenu( self )
- #CHECK_PTR( self.options )
+ #TQ_CHECK_PTR( self.options )
self.options.insertTearOffHandle()
self.options.setCaption( 'Options' )
self.options.insertItem( "&Normal Font", self.normal )
@@ -194,7 +194,7 @@ class MenuExample( TQWidget ):
self.options.setCheckable( TRUE )
self.options = TQPopupMenu()
- #CHECK_PTR( self.options )
+ #TQ_CHECK_PTR( self.options )
self.options.insertItem( "&Normal Font", self.normal )
self.options.insertSeparator()
self.boldID = self.options.insertItem( "&Bold", self.bold )
@@ -205,12 +205,12 @@ class MenuExample( TQWidget ):
self.options.setCheckable( TRUE )
self.help = TQPopupMenu( self )
- #CHECK_PTR( self.help )
+ #TQ_CHECK_PTR( self.help )
self.help.insertItem( "&About", self.about, TQt.CTRL+TQt.Key_H )
self.help.insertItem( "About &TQt", self.aboutTQt )
self.menu = TQMenuBar( self )
- #CHECK_PTR( self.menu );
+ #TQ_CHECK_PTR( self.menu );
self.menu.insertItem( "&File", self.file )
self.menu.insertItem( "&Edit", self.edit )
self.menu.insertItem( "&Options", self.options )
@@ -219,7 +219,7 @@ class MenuExample( TQWidget ):
self.menu.setSeparator( TQMenuBar.InWindowsStyle )
self.label = TQLabel( self )
- #CHECK_PTR( self.label )
+ #TQ_CHECK_PTR( self.label )
self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
self.label.setFrameStyle( TQFrame.Box | TQFrame.Raised )
self.label.setLineWidth( 1 )