Just checking, this really threw me.

Needed to pass an arg to a python function/method
via a Qt object signal.

class timer_up(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0, us=0):
        QDialog.__init__(self,parent,name,modal,fl)

        self.num = us
        self.cw = self

        self.timer1 = QTimer(self)
        self.timer1.start(5000)

self.connect(self.timer1,SIGNAL("timeout()"),self.slottimeout)

self.connect( self, PYSIGNAL("timesig"), self.timechk)

    def slottimeout(self):
        self.emit(PYSIGNAL("timesig"), (self.num,self.cw))

    def timechk(self,num,cw):
        dbfunc.timer_cb(cw,num)



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

Reply via email to