Event.copy

Copies a #GdkEvent, copying or incrementing the reference count of the resources associated with it (e.g. #GdkWindow’s and strings).

class Event
copy
()

Return Value

Type: gdk.event.Event

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