Event.copy

Copies a gdk.Event, copying or incrementing the reference count of the resources associated with it (e.g. gdk.Window’s and strings).

class Event
copy
()

Return Value

Type: Event

a copy of event. The returned gdk.Event should be freed with Event.free.