Event Handling and Signal-Slot Mechanism

James Mills prologic at shortcircuit.net.au
Mon Jan 19 03:58:33 EST 2009


On Mon, Jan 19, 2009 at 5:49 PM, Steven Woody <narkewoody at gmail.com> 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, when a behavior is needed to handle
> user interaction, the single-slot mechanism is always used.

Not having read the book myself I can't really comment,
except that I -am- sure that this is specific to PyQt (at least the slots).
Most GUI frameworks I know of employ a common
architecture - one of an event-driven nature.

cheers
James



More information about the Python-list mailing list