Monday, June 06, 2011

gobject Functions

gobject Functions: "gobject.idle_add

def gobject.idle_add(callback, ...)
callback : a function to call when PyGTK is idle
... : optionals arguments to be passed to callback
Returns : an integer ID
The gobject.idle_add() function adds a function (specified by callback) to be called whenever there are no higher priority events pending to the default main loop. The function is given the default idle priority, gobject.PRIORITY_DEFAULT_IDLE. Additional arguments to pass to callback can be specified after callback. The idle priority can be specified as a keyword-value pair with the keyword 'priority'. If callback returns FALSE it is automatically removed from the list of event sources and will not be called again."