GLXCurses.MainLoop module

class GLXCurses.MainLoop.Singleton(name, bases, dictionary)[source]

Bases: type

class GLXCurses.MainLoop.MainLoop(application=None, debug=None)[source]

Bases: object

Description:

The MainLoop is something close to a infinity loop with a start() and stop() method

Methods:
start() – start the mainloop stop() – stop the mainloop emit() – emit a signal

Warning

you have to start the mainloop from you application via MainLoop().start()

Creates a new MainLoop structure.

debug
instance = None
application
event_list
running
glxcurses_support
start()[source]

Runs a MainLoop until quit() is called on the loop. If this is called for the thread of the loop’s , it will process events from the loop, otherwise it will simply wait.

stop()[source]

Stops a MainLoop from running. Any calls to run() for the loop will return.

Note that sources that have already been dispatched when quit() is called will still be executed.

handle_event(event=None)[source]