Reimplementation of a slot?
Birgit Lachner
schulz.online at gmx.de
Thu Apr 24 09:55:13 EDT 2003
Hi ...
I created a ui-file with QtDesigner and translated it to Python with pyuic.
The new .py-file is then imported to the file with the main-function.
Everything is working. But I want to reimplement the existing slot in the
pyuic-generated file.
How can I do this? I search through the internet and found many documents
about Python, Qt and slots but nothing about how to reimplement slots.
Can you help me?
Here is the main-function (copied from a auto-executable file created by
pyuic :
####################################################
import sys
from hallo import *
def slotDruck():
???.setText("Hallo Welt") ###### not working :-(
if __name__ == "__main__":
a = QApplication(sys.argv)
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = Form1()
a.setMainWidget(w)
w.show()
a.exec_loop()
####################################################
Bye ... Birgit Lachner.
More information about the Python-list
mailing list