Event.peek

If there is an event waiting in the event queue of some open display, returns a copy of it. See Display.peekEvent.

class Event
static
peek
()

Return Value

Type: Event

a copy of the first gdk.Event on some event queue, or NULL if no events are in any queues. The returned gdk.Event should be freed with Event.free.