Deprecatedwidget: Gtk.WidgetWidget to generate a button click on.
Deprecatedbutton: numberNumber of the pointer button for the event, usually 1, 2 or 3.
Deprecatedmodifiers: Gdk.ModifierTypeKeyboard modifiers the event is setup with.
whether all actions neccessary for the button click simulation were carried out successfully.
This function will generate a
buttonclick (button press and button release event) in the middle of the first GdkWindow found that belongs towidget. For windowless widgets like Gtk.Button (which returnsfalsefromgtk_widget_get_has_window()), this will often be an input-only event window. For other widgets, this is usually widget->window. Certain caveats should be considered when using this function, in particular because the mouse pointer is warped to the button click location, seegdk_test_simulate_button()for details.