Re: [PyQt] New Style emit without subclassing

2009-04-08 Thread Phil Thompson
On Wed, 08 Apr 2009 07:45:35 -0400, Matt Smith wrote: > Thats not quite what I'm getting at. That will emit the signal, which > is the 'old style' but the new style is a bit different, and after you > set it up you emit the signal by using: > > mysignal.emit(args) > > My question is that

Re: [PyQt] New Style emit without subclassing

2009-04-08 Thread Demetrius Cassidy
What's wrong with the old signal? It works. I am not sure about the new one you are talking about, and haven't really seen any docs on it. - Original Message - From: "Matt Smith" To: Sent: Wednesday, April 08, 2009 7:45 AM Subject: Re: [PyQt] New Style emit

Re: [PyQt] New Style emit without subclassing

2009-04-08 Thread Matt Smith
#x27; signal emittable is via creating a class attribute, ie: class MyScene(QtGui.QGraphicsScene): mysignal = QtCore.pyqtSignal(QtGui.QGraphicsSceneMouseEvent) def __init__(self,parent): #normal init stuff thanks mbs > From: "Demetrius Cassidy" > Subject: Re: [PyQt

Re: [PyQt] New Style emit without subclassing

2009-04-07 Thread Demetrius Cassidy
csScene.__init__(self,parent) >self.emit(SIGNAL(("itemClicked(QGraphicsSceneMouseEvent*)"))) > > > - Original Message - > From: "Matt Smith" > To: > Sent: Tuesday, April 07, 2009 3:17 PM > Subject: [PyQt] New Style emit without subclassi

Re: [PyQt] New Style emit without subclassing

2009-04-07 Thread Demetrius Cassidy
th" To: Sent: Tuesday, April 07, 2009 3:17 PM Subject: [PyQt] New Style emit without subclassing I'm not clear on how to make an object emit a signal without subclassing, with the new style emits. ie, old style: myscene.emit( QtCore.SIGNAL("itemClicked(QGraphic

[PyQt] New Style emit without subclassing

2009-04-07 Thread Matt Smith
I'm not clear on how to make an object emit a signal without subclassing, with the new style emits. ie, old style: myscene.emit( QtCore.SIGNAL("itemClicked(QGraphicsSceneMouseEvent*)" ,ev ) Where as if I subclass: class MyScene(QtGui.QGraphicsScene): touc