Re: [PyKDE] Signals and Slots not working

2006-12-29 Thread Rick van Hattem
On Saturday 30 December 2006 02:45, [EMAIL PROTECTED] wrote: > These connections statements are not working > > QObject.connect( spinbox, SIGNAL('valueChanged()'), slider, > SLOT('setValue()')) QObject.connect( slider, SIGNAL('valueChanged()'), > spinbox, SLOT('setValue()')) > > > > I'm reading "C+

Re: [PyKDE] Signals and Slots not working

2006-12-29 Thread Rick van Hattem
On Saturday 30 December 2006 02:45, [EMAIL PROTECTED] wrote: > These connections statements are not working > > QObject.connect( spinbox, SIGNAL('valueChanged()'), slider, > SLOT('setValue()')) QObject.connect( slider, SIGNAL('valueChanged()'), > spinbox, SLOT('setValue()')) > > > > I'm reading "C+

[PyKDE] Signals and Slots not working

2006-12-29 Thread paulino1
These connections statements are not working QObject.connect( spinbox, SIGNAL('valueChanged()'), slider, SLOT('setValue()')) QObject.connect( slider, SIGNAL('valueChanged()'), spinbox, SLOT('setValue()')) I'm reading "C++ Gui Programming with Qt4" and trying out the exemples given there in pyth

Re: [PyKDE] signals

2006-10-07 Thread Hans-Peter Jansen
Am Samstag, 7. Oktober 2006 17:39 schrieb M.Chambers: > I cut and pasted "collapsed (const QModelIndex & index)" directy from > Assistant, which is how I did it with PtQt3 > > Changing to this fixed it: > self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex)"), still wrong, the ampersand

Re: [PyKDE] signals

2006-10-07 Thread M.Chambers
I cut and pasted "collapsed (const QModelIndex & index)" directy from Assistant, which is how I did it with PtQt3 Changing to this fixed it: self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex)"), self.cbCollapsed); Matt On Fri, 2006-10-06 at 13:34 -0700, Jim Bublitz wrote: > On Frid

Re: [PyKDE] signals

2006-10-06 Thread Jim Bublitz
On Friday 06 October 2006 12:22, Andreas Pakulat wrote: > On 06.10.06 12:00:27, Matt Chambers wrote: > > Any guesses as to why this line would not conncet the signal? Using a > > treeview. > > > > self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & > > index)"), self.cbCollapsed); > >

Re: [PyKDE] signals

2006-10-06 Thread Andreas Pakulat
On 06.10.06 11:15:20, Joshua J. Kugler wrote: > On Friday 06 October 2006 11:00, Matt Chambers wrote: > > Any guesses as to why this line would not conncet the signal? Using a > > treeview. > > > > self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & > > index)"), self.cbCollapsed); >

Re: [PyKDE] signals

2006-10-06 Thread Joshua J. Kugler
On Friday 06 October 2006 11:00, Matt Chambers wrote: > Any guesses as to why this line would not conncet the signal? Using a > treeview. > > self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & > index)"), self.cbCollapsed); 1, you are including parameter names in the signal 2. you a

Re: [PyKDE] signals

2006-10-06 Thread Andreas Pakulat
On 06.10.06 12:00:27, Matt Chambers wrote: > > Any guesses as to why this line would not conncet the signal? Using a > treeview. > > self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & index)"), > self.cbCollapsed); Because there's a space between the function name and the (. Sig

[PyKDE] signals

2006-10-06 Thread Matt Chambers
Any guesses as to why this line would not conncet the signal? Using a treeview. self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & index)"), self.cbCollapsed); Matt ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://ma

Re: [PyKDE] Signals and Slots in PyQt4

2005-12-19 Thread Baz Walter
On Sunday 18 Dec 2005 22:04, Phil Thompson wrote: > On Sunday 18 December 2005 6:33 pm, Baz Walter wrote: > > Hello > > > > When disconnecting a signal from a python slot, if the connection has not > > already been made, it produces the error: 'RuntimeError: Slot hasn't been > > connected'. However

RuntimeError exceptions (was Re: [PyKDE] Signals and Slots in PyQt4)

2005-12-18 Thread Matthew Scott
On 12/18/05, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Sunday 18 December 2005 6:33 pm, Baz Walter wrote: > > Hello > > > > When disconnecting a signal from a python slot, if the connection has not > > already been made, it produces the error: 'RuntimeError: Slot hasn't been > > connected'. How

Re: [PyKDE] Signals and Slots in PyQt4

2005-12-18 Thread Phil Thompson
On Sunday 18 December 2005 6:33 pm, Baz Walter wrote: > Hello > > When disconnecting a signal from a python slot, if the connection has not > already been made, it produces the error: 'RuntimeError: Slot hasn't been > connected'. However, QObject.disconnect gives a boolean result on > success/failu

[PyKDE] Signals and Slots in PyQt4

2005-12-18 Thread Baz Walter
Hello When disconnecting a signal from a python slot, if the connection has not already been made, it produces the error: 'RuntimeError: Slot hasn't been connected'. However, QObject.disconnect gives a boolean result on success/failure. So is this error really necessary? (With unconnected qt slot

[PyKDE] Signals From a QTableItem Subclass

2003-08-04 Thread Bob Parnes
Hello, Attached is a demo to illustrate a problem I have with trying to implement a QTableItem subclass. My guide for the implementation of PCheckTableItem is the source code for QCheckTableItem. On my system, using the mouse to toggle PCheckTableItem does not move the selected cell to the item.