[PyKDE] setCaption for windows version
James Lamanna
jamesl at appliedminds.com
Mon Oct 27 18:50:01 GMT 2003
On Mon, 27 Oct 2003 08:44:02 +0100, Gerard Vermeulen
<gvermeul at grenoble.cnrs.fr> 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
More information about the PyQt
mailing list