Re: The proper use of QSignalMapper

2007-01-20 Thread borntonetwork
How simple. I will remember that sender() function for future reference. Thanks, David. David Boddie wrote: > On Saturday 20 January 2007 16:03, borntonetwork wrote: > > > David, thanks for your help. Unfortunately, all attempts of making this > > solution work have failed. I would be interested t

Re: The proper use of QSignalMapper

2007-01-20 Thread David Boddie
On Saturday 20 January 2007 16:03, borntonetwork wrote: > David, thanks for your help. Unfortunately, all attempts of making this > solution work have failed. I would be interested to know if anyone has > used QSignalMapper successfully in a similar situation. Looking again at what you originally

Re: The proper use of QSignalMapper

2007-01-20 Thread borntonetwork
David, thanks for your help. Unfortunately, all attempts of making this solution work have failed. I would be interested to know if anyone has used QSignalMapper successfully in a similar situation. For any interested, I worked around the problem using a closure, which seems a bit cleaner from a co

Re: The proper use of QSignalMapper

2007-01-18 Thread David Boddie
borntonetwork wrote: > Thanks, David, for you help. > > When I change the slot function to what you show in your second > example, I get the same results: nothing. This may be due to something I missed in your code. When you connect the signal from the signal mapper to your class, you need to spec

Re: The proper use of QSignalMapper

2007-01-17 Thread borntonetwork
Thanks, David, for you help. When I change the slot function to what you show in your second example, I get the same results: nothing. When I change it to what you have in your first example, I get the following: Object::connect: No such slot QApplication::map() Object::connect: (sender name:

Re: The proper use of QSignalMapper

2007-01-17 Thread David Boddie
borntonetwork wrote: > I am trying to implement QTCore.QSignalMapper using PyQT. I finally got > to a point where I don't receive any compile or runtime error messages, > but I also do not see the final slot function fire off. Here is a > snippet of the code: > > self.signalMapper = QtCore

The proper use of QSignalMapper

2007-01-17 Thread borntonetwork
Hi. I am trying to implement QTCore.QSignalMapper using PyQT. I finally got to a point where I don't receive any compile or runtime error messages, but I also do not see the final slot function fire off. Here is a snippet of the code: self.signalMapper = QtCore.QSignalMapper(window)