GUI White Papers
Mastering Perl/Tk: Graphical User Interfaces in Perl - Anatomy of the MainLoop
Overview As programmers, one knows what a "Main loop" is. It's the heart of the programs, the repeating chunk of code that carries out the task at hand. But Perl/Tk programs are event driven, so even if one writes what one believes is the program's main loop, it must coexist with a higher order main loop that's a fundamental part of Tk. The Tk main loop is typically referred to as the event loop, and its job is to invoke callbacks in response to events such as button presses or timer expirations. Callbacks are Perl subroutines associated with Tk events. In Perl/Tk, one can define callbacks that, from the point of view, are automatically invoked when the appropriate event occurs.
| Publisher | O'Reilly Media | File Format | HTML |
|---|---|---|---|
| Date Published | January 2002 | Downloads | 2 |
| Format | Book chapters | ||
| Topics | |||



