On Mon, 27 Oct 2003 08:44:02 +0100, Gerard Vermeulen <[EMAIL PROTECTED]> wrote:
I am sure that it works without the self.tr() call.  However, you'll see
an annoying "[FreeWare] Internationalization Example", but I think that
is a feature of Qt-NC.

Removing the tr() call and using the program below, I still get the same result: a window with 'python' as the caption.
I'm using Python2.3 and the lastest Windows binary version of PyQt.
Please CC me for I am not subscribed.


from qt import *
import sys
class MyWidget(QMainWindow):
     def __init__(self):
           QMainWindow.__init__(self,None,'',Qt.WDestructiveClose)
           self.setCaption("Test Caption");

if __name__ == '__main__':
     a = QApplication(sys.argv)
     QObject.connect(a,SIGNAL('lastWindowClosed()'),a,SLOT('quit()'))

     w = MyWidget()
     a.setMainWidget(w)
     w.show()
     a.exec_loop()

--
James Lamanna

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to