Re: PyQT - Signals and Slots?

2016-10-10 Thread Michael Torrie
On 10/10/2016 07:32 AM, Veek M wrote: > Whaaa...t?? Could someone explain what exactly is his grand design > besides being awfully circuitous? So he has some other Form thingy.. and > in that he sets up another mapping from ZeroSpinBox.atzero --> > ZeroSpinBox.announce where's announce and

Re: PyQT - Signals and Slots?

2016-10-10 Thread Veek M
Mark Summerfield wrote: > > The ZeroSpinBox is a tiny example designed to show how the signal/slot > mechanism works. It is just a QSpinBox with the addition of > remembering how many times (all the) ZeroSpinBox(es) have had a 0 > value. > > Nowadays the connections would be made with a new impr

Re: PyQT - Signals and Slots?

2016-10-10 Thread Mark Summerfield
The ZeroSpinBox is a tiny example designed to show how the signal/slot mechanism works. It is just a QSpinBox with the addition of remembering how many times (all the) ZeroSpinBox(es) have had a 0 value. Nowadays the connections would be made with a new improved syntax: self.connect(self, SIGNAL

PyQT - Signals and Slots?

2016-10-10 Thread Veek M
signalSignature -> functionName -> instance.methodName -> instance.slotSignature If signalSignature is a C++ implemented thingy then we got to pass type info as part of the mapping so "signalSignature(int, float, const char *). PyQT signals are any type and a

pyqt signals

2010-09-03 Thread luca72
Hello i have write this but i not able to connect the emit of the class Socket to the Form class, can you help me? class Socket(QtNetwork.QTcpSocket): def __init__(self, parent=None): super(Socket, self).__init__(parent) self.connect(self, QtCore.SIGNAL("readyRead()"), self.leg

Re: PyQt signals/slots dialogs question

2010-06-07 Thread Thomas Jollans
On 06/07/2010 08:21 PM, AlienBaby wrote: > On Jun 7, 5:21 pm, AlienBaby wrote: > >> My real aim here is to learn pyqt, so I would rather not the the >> QWizard process until I understand myself whats going on behind the >> scenes. >> > Perhaps I posted to early, but a little more perserver

Re: PyQt signals/slots dialogs question

2010-06-07 Thread AlienBaby
On Jun 7, 5:21 pm, AlienBaby wrote: > My real aim here is to learn pyqt, so I would rather not the the > QWizard process until I understand myself whats going on behind the > scenes. Perhaps I posted to early, but a little more perserverance and I have managed to unthaw the brain and move forward

Re: PyQt signals/slots dialogs question

2010-06-07 Thread AlienBaby
My real aim here is to learn pyqt, so I would rather not the the QWizard process until I understand myself whats going on behind the scenes. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt signals/slots dialogs question

2010-06-07 Thread AlienBaby
On Jun 7, 4:37 pm, Phil Thompson wrote: > On Mon, 7 Jun 2010 08:22:07 -0700 (PDT), AlienBaby > > wrote: > > > > > > > Hi, > > > I'm just starting to get to grips with PyQt, and I'm having a bit of > > trouble connecting slots / signals, or understanding how I should do > > so to achieve what I am

Re: PyQt signals/slots dialogs question

2010-06-07 Thread AlienBaby
I've made a little progress; This appears to setup a connection that fires when the welcomeNext button in the Welcome dialog is clicked; self.Welcome.welcomeNext.connect(self.Welcome.welcomeNext,QtCore.SIGNAL("clicked()"),self.WelcomeNext) In the StartQT4 class I now have the WelcomeNext method

Re: PyQt signals/slots dialogs question

2010-06-07 Thread Phil Thompson
On Mon, 7 Jun 2010 08:22:07 -0700 (PDT), AlienBaby wrote: > Hi, > > I'm just starting to get to grips with PyQt, and I'm having a bit of > trouble connecting slots / signals, or understanding how I should do > so to achieve what I am after. > > I am trying to write an application that will displ

PyQt signals/slots dialogs question

2010-06-07 Thread AlienBaby
Hi, I'm just starting to get to grips with PyQt, and I'm having a bit of trouble connecting slots / signals, or understanding how I should do so to achieve what I am after. I am trying to write an application that will display a sequence of dialogs, with back / next / cancel buttons to step throu

Re: PyQt Signals and multiple sources

2009-12-20 Thread Zabin
On Dec 21, 11:15 am, "John Posner" wrote: > On Sun, 20 Dec 2009 16:59:11 -0500, Zabin wrote: > > I am beginner in programming in pyqt. I have been trying to call the > > same function from multiple events- but each event results in a > > different instance of the function. I am just unable to fig

Re: PyQt Signals and multiple sources

2009-12-20 Thread John Posner
On Sun, 20 Dec 2009 16:59:11 -0500, Zabin wrote: I am beginner in programming in pyqt. I have been trying to call the same function from multiple events- but each event results in a different instance of the function. I am just unable to figure out how to retrieve the source which calls the fun

PyQt Signals and multiple sources

2009-12-20 Thread Zabin
I am beginner in programming in pyqt. I have been trying to call the same function from multiple events- but each event results in a different instance of the function. I am just unable to figure out how to retrieve the source which calls the function: My source signal declarations are as below: Q