Event Handling and Signal-Slot Mechanism

Steven Woody narkewoody at gmail.com
Mon Jan 19 08:49:51 CET 2009

On Mon, Jan 19, 2009 at 11:29 AM, James Mills
<prologic at shortcircuit.net.au> wrote:
> On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody <narkewoody at gmail.com> 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 think Signal Slot is not enough and will
>> not work?
> In what context ? What application ?

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, when a behavior is needed to handle
user interaction, the single-slot mechanism is always used.

More information about the Python-list mailing list