next up previous index
Next: Handling Tk Events Up: Event Handling Previous: Tk as the

Prolog as the Client

    This approach should be used if there is more interaction between the graphical interface and Prolog execution, if Prolog has to stop sometimes, handle events and then continue, or if we simply prefer to handle events in Prolog. In this case, the Prolog program is the client, Prolog top-level   loop might be active all the time, and Tk events have to be polled and processed while a Prolog program executes.   The primitives to be used:

It is important to keep in mind that if a Tcl/Tk procedure is being called from Prolog, it cannot call back Prolog to obtain some Prolog data. All data needed in the Tcl/Tk procedure must be passed to it as arguments.





next up previous index
Next: Handling Tk Events Up: Event Handling Previous: Tk as the



Micha Meier
Tue Jul 2 09:49:39 MET DST 1996