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.
Related white papers
Configuring Team System for Your Environment
Working with customers on Team System, few questions are raised around the configuration of the Team System environment. From external users using Team Foundation Server to setting up test rigs...
e-Project Management for the New e-Reality
Most E-projects differ from traditional software projects in two key dimensions: the frequency of releases is higher; and the scope of what is deployed in each release is smaller. ...
GTK+ for the Linux Framebuffer
In the upcoming GTK+2.0 release GTK+ will support rendering directly to the framebuffer instead of using the X Window System. This is good for embedded systems such as PDAs and...
Information Architecture-Usable Interfaces
This white paper examines the growing body of research and experience accumulated, enabling interface designers to create intuitive UI's that shorten the learning curve and increase productivity for users. The...
Cross-Platform C++ GUI Application Framework - Technical Overview
Software producers have for many years had to face the problem of how to target a market consisting of a diversity of operating systems and window systems. There are no...
Graphing IV- Runtime Manipulation Using a DataWindow Control
A DataWindow object is created in the DataWindow painter. Usually the properties of this object are set by runtime. The DataWindow control, on the other hand, is explicitly related to...
TWP7: Enterprise Software Management in an Era of Increasing Computing Complexity (IDC)
Most companies, especially large, widely distributed, global enterprises, need easy-to-install, easy-to-use, and easy-to-maintain applications that will help them manage changes and new configurations in their huge software investments. Inadequate software management...

