Widget.event

Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don’t use this function; instead, use gtk.global.mainDoEvent so the event will behave as if it were in the event queue. Don’t synthesize expose events; instead, use gdk.window.Window.invalidateRect to invalidate a region of the window.

class Widget
bool
event

Parameters

event gdk.event.Event

a #GdkEvent

Return Value

Type: bool

return from the event signal emission (true if the event was handled)