--- a/Tools/UIPreviewer.py Wed Aug 04 08:54:52 2010 +0200 +++ b/Tools/UIPreviewer.py Wed Aug 04 20:33:53 2010 +0200 @@ -119,7 +119,7 @@ """<b>Open File</b>""" """<p>This opens a new UI file for display.</p>""" )) - self.openAct.triggered.connect(self.__openFile) + self.openAct.triggered[()].connect(self.__openFile) self.printAct = QAction(UI.PixmapCache.getIcon("print.png"), self.trUtf8('&Print'), self) @@ -129,7 +129,7 @@ """<b>Print</b>""" """<p>Print a screen capture.</p>""" )) - self.printAct.triggered.connect(self.__printImage) + self.printAct.triggered[()].connect(self.__printImage) self.printPreviewAct = QAction(UI.PixmapCache.getIcon("printPreview.png"), self.trUtf8('Print Preview'), self) @@ -139,7 +139,7 @@ """<b>Print Preview</b>""" """<p>Print preview a screen capture.</p>""" )) - self.printPreviewAct.triggered.connect(self.__printPreviewImage) + self.printPreviewAct.triggered[()].connect(self.__printPreviewImage) self.imageAct = QAction(UI.PixmapCache.getIcon("screenCapture.png"), self.trUtf8('&Screen Capture'), self) @@ -150,7 +150,7 @@ """<b>Screen Capture</b>""" """<p>Save a screen capture to an image file.</p>""" )) - self.imageAct.triggered.connect(self.__saveImage) + self.imageAct.triggered[()].connect(self.__saveImage) self.exitAct = QAction(UI.PixmapCache.getIcon("exit.png"), self.trUtf8('&Quit'), self) @@ -171,7 +171,7 @@ """<b>Copy</b>""" """<p>Copy screen capture to clipboard.</p>""" )) - self.copyAct.triggered.connect(self.__copyImageToClipboard) + self.copyAct.triggered[()].connect(self.__copyImageToClipboard) self.whatsThisAct = QAction(UI.PixmapCache.getIcon("whatsThis.png"), self.trUtf8('&What\'s This?'), self) @@ -185,7 +185,7 @@ """ dialogs, this feature can be accessed using the context help""" """ button in the titlebar.</p>""" )) - self.whatsThisAct.triggered.connect(self.__whatsThis) + self.whatsThisAct.triggered[()].connect(self.__whatsThis) self.aboutAct = QAction(self.trUtf8('&About'), self) self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) @@ -193,7 +193,7 @@ """<b>About</b>""" """<p>Display some information about this software.</p>""" )) - self.aboutAct.triggered.connect(self.__about) + self.aboutAct.triggered[()].connect(self.__about) self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self) self.aboutQtAct.setStatusTip(\ @@ -202,7 +202,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered.connect(self.__aboutQt) + self.aboutQtAct.triggered[()].connect(self.__aboutQt) def __initMenus(self): """