Re: Event Handling and Signal-Slot Mechanism

2009-01-19 Thread Steven Woody
On Tue, Jan 20, 2009 at 1:03 AM, BlueBird wrote: > On Jan 19, 4:10 am, Steven Woody wrote: >> Hi, >> >> Python has Signal-Slot mechanism, > > Python does not have signal/slot mechanism. You are talking about the > Qt toolkit, which is initially a (nice) C++ toolkit, available also in > python via

Re: Event Handling and Signal-Slot Mechanism

2009-01-19 Thread BlueBird
On Jan 19, 4:10 am, Steven Woody wrote: > Hi, > > Python has Signal-Slot mechanism, Python does not have signal/slot mechanism. You are talking about the Qt toolkit, which is initially a (nice) C++ toolkit, available also in python via the PyQt wrapper. Signal/slots were introduced by Qt to make

Re: Event Handling and Signal-Slot Mechanism

2009-01-19 Thread James Mills
On Mon, Jan 19, 2009 at 5:49 PM, Steven Woody wrote: > I am reading mark summerfield's book Rapid GUI Programming with Python > and Qt, chapter 6. In the example code, it inserted customized > behavior when user selects file->exit by overriding closeEvent() event > handler, but in other context, w

Re: Event Handling and Signal-Slot Mechanism

2009-01-18 Thread Steven Woody
On Mon, Jan 19, 2009 at 11:29 AM, James Mills wrote: > On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody wrote: >> Python has Signal-Slot mechanism, why he still need another mechanism >> Event Handling? And, in some cases, it seems only Event Handling >> mechanism is available, for example closeEve

Re: Event Handling and Signal-Slot Mechanism

2009-01-18 Thread James Mills
On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody wrote: > Python has Signal-Slot mechanism, why he still need another mechanism > Event Handling? And, in some cases, it seems only Event Handling > mechanism is available, for example closeEvent(). For what case and > for what reason, the python thin

Event Handling and Signal-Slot Mechanism

2009-01-18 Thread Steven Woody
Hi, Python has Signal-Slot mechanism, why he still need another mechanism Event Handling? And, in some cases, it seems only Event Handling mechanism is available, for example closeEvent(). For what case and for what reason, the python think Signal Slot is not enough and will not work? Thanks. -