Gets a copy of the first gdk.Event in the display’s event queue, without removing the event from the queue. (Note that this function will not get more events from the windowing system. It only checks the events that have already been moved to the GDK event queue.)

class Display

Return Value

Type: Event

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