Event.get

Checks all open displays for a #GdkEvent to process,to be processed on, fetching events from the windowing system if necessary. See gdk.display.Display.getEvent.

Returns

the next #GdkEvent to be processed, or null

if no events are pending. The returned #GdkEvent should be freed with gdk.event.Event.free.