diff options
Diffstat (limited to 'examples/mdi.py')
-rwxr-xr-x | examples/mdi.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/mdi.py b/examples/mdi.py index 591a4eb..961c54a 100755 --- a/examples/mdi.py +++ b/examples/mdi.py @@ -163,13 +163,13 @@ class ApplicationWindow(TQMainWindow): self.file.insertSeparator() - self.file.insertItem('&Close',self,SLOT('close()'),TQt.CTRL + TQt.Key_W) - self.file.insertItem('&Quit',tqApp,SLOT('closeAllWindows()'),TQt.CTRL + TQt.Key_Q) + self.file.insertItem('&Close',self,TQ_SLOT('close()'),TQt.CTRL + TQt.Key_W) + self.file.insertItem('&Quit',tqApp,TQ_SLOT('closeAllWindows()'),TQt.CTRL + TQt.Key_Q) self.menuBar().insertSeparator() self.windows = TQPopupMenu( self ) self.windows.setCheckable( True ) - self.connect( self.windows, SIGNAL( "aboutToShow()" ), + self.connect( self.windows, TQ_SIGNAL( "aboutToShow()" ), self.windowsMenuAboutToShow ) self.menuBar().insertItem( "&Windows", self.windows ) @@ -180,7 +180,7 @@ class ApplicationWindow(TQMainWindow): self.help.insertItem('&About',self.about,TQt.Key_F1) self.help.insertItem('About &TQt',self.aboutTQt) self.help.insertSeparator() - self.help.insertItem( "What's &This", self, SLOT("whatsThis()"), TQt.SHIFT+TQt.Key_F1) + self.help.insertItem( "What's &This", self, TQ_SLOT("whatsThis()"), TQt.SHIFT+TQt.Key_F1) self.menuBar().insertSeparator() @@ -195,7 +195,7 @@ class ApplicationWindow(TQMainWindow): def newDoc(self): w = MDIWindow( self.ws, "", TQt.WDestructiveClose ) - self.connect( w, PYSIGNAL( "message" ), self.statusBar(), SLOT( "message(const TQString&, int )") ) + self.connect( w, PYSIGNAL( "message" ), self.statusBar(), TQ_SLOT( "message(const TQString&, int )") ) w.setCaption("unnamed document") w.setIcon( TQPixmap(document) ) # show the very first window in maximized mode @@ -243,8 +243,8 @@ class ApplicationWindow(TQMainWindow): def windowsMenuAboutToShow(self): self.windows.clear() - cascadeId = self.windows.insertItem("&Cascade", self.ws, SLOT("cascade() ") ) - tileId = self.windows.insertItem("&Tile", self.ws, SLOT("tile()" ) ) + cascadeId = self.windows.insertItem("&Cascade", self.ws, TQ_SLOT("cascade() ") ) + tileId = self.windows.insertItem("&Tile", self.ws, TQ_SLOT("tile()" ) ) if len(self.ws.windowList())==0 : self.windows.setItemEnabled( cascadeId, False ) self.windows.setItemEnabled( tileId, False ) @@ -356,5 +356,5 @@ if __name__=='__main__': mw = ApplicationWindow() mw.setCaption("PyTQt Example - Multiple Documents Interface (MDI)") mw.show() - a.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) + a.connect(a, TQ_SIGNAL('lastWindowClosed()'), a, TQ_SLOT('quit()')) a.exec_loop() |