PtMainLoop

PtMainLoop — starts an infinite event loop.

Syntax

PtMainLoop ()

		

Arguments

none

Returns

None. Never returns.

Description

This function starts an infinite event loop. If this function is read from a file it closes the file before starting the event loop. This is useful to ensure that no files are left open before starting the main event loop.

Example

See examples for PtAttachCallback, PtContainerGiveFocus, and PtExtentWidget.

See the Photon: the Controller window of the Controller Functions chapter (Tutorial Two) in the Cogent Tools Demo and Tutorials book for an example of this function used in context.

See Also

next_event, next_event_nb

and in Photon documentation: PtMainLoop.