Event.peek

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

class Event
static
peek
()

Return Value

Type: Event

a copy of the first #GdkEvent on some event queue, or %NULL if no events are in any queues. The returned #GdkEvent should be freed with gdk_event_free().

Meta