On Mon, Jan 19, 2009 at 11:29 AM, James Mills <prolo...@shortcircuit.net.au> wrote: > On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody <narkewo...@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. -- http://mail.python.org/mailman/listinfo/python-list