Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-22 Thread Patrick Stinson
Just to add to the chaos, wouldn't a syntax like the following be interesting: timer.connect('timeout()', slotfunc) I realize that removes a bit from (not only some fundamental qt syntax :)) this QObject.connect(timer, 'timeout()', self, 'myTimerBlew()') but once you start adding optional

[PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread Phil Thompson
PYSIGNAL() has already been dropped in PyQt4. This was possible because Qt4 makes it easier to look up whether a particular string is a Qt signal signature or not. There is no reason why this approach cannot be extended to distinguishing between signals and slots, ie. rely on a slightly slower

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread Ismail Donmez
Pazar 19 Şubat 2006 14:23 tarihinde, Phil Thompson şunları yazmıştı: PYSIGNAL() has already been dropped in PyQt4. This was possible because Qt4 makes it easier to look up whether a particular string is a Qt signal signature or not. There is no reason why this approach cannot be extended to

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread Andreas Pakulat
On 19.02.06 12:23:00, Phil Thompson wrote: signature or not. There is no reason why this approach cannot be extended to distinguishing between signals and slots, ie. rely on a slightly slower dynamic lookup rather that the type information SIGNAL() and SLOT() provide. (In fact I don't see

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: (In fact I don't see why Qt still needs SIGNAL() and SLOT() - maybe the speed penalty of the alternative is more an issue at the C++ level.) Nah. There's boost::signal, which is a full-blown signal/slot implementation which works totally at compile time

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread David Boddie
On Sun Feb 19 15:30:53, Giovanni Bajo wrote: Phil Thompson phil at riverbankcomputing.co.uk wrote: (In fact I don't see why Qt still needs SIGNAL() and SLOT() - maybe the speed penalty of the alternative is more an issue at the C++ level.) Nah. There's boost::signal, which is a

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread Patrick Stinson
As I wrote to a friend recently, qt has always been more of a good interface than a chunk of unique functional code. IMO, the reason qt is so successful is that it defines a standard way to do all the usual stuff, and that makes our code easier to read, and easier to understand while writing it.