[Tutor] Question on PyQt Signals and Slots
Jacob Abraham
jakieabraham at yahoo.com
Tue Feb 17 05:11:30 EST 2004
Dear tutors,
I am building an application using python and Qt
and would like to know how one should pass arguments
when using Signals and Slots. Especially when one of
the arguments is a class instance.
QObject.connect(self.table,SIGNAL("clicked(int,int,int,QPoint)"),self.tableclick)
These were my attempts that returned errors.
def tableclick(self,a,b,c,d):
def tableclick(self,*args):
def tableclick(self,*args,**argv):
def tableclick(self,a,b,c,d,*arg):
RuntimeError: Signal has wrong argument types for slot
Thanks
Jacob Abraham
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
More information about the Tutor
mailing list