[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Reimplementation of a slot?
From:       Birgit Lachner <schulz.online () gmx ! de>
Date:       2003-04-24 13:55:13
[Download RAW message or body]

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.
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic