Class GTK1.Widget
- Description
The basic widget, inherited (directly or indirectly) by all widgets. Thus, all functions and signals defined in this widget works on all widgets.
One of the most importat functions in this class is 'show', it lets GTK know that we are done setting the attributes of the widget, and it is ready to be displayed. You may also use hide to make it disappear again. The order in which you show the widgets is not important, but I suggest showing the toplevel window last so the whole window pops up at once rather than seeing the individual widgets come up on the screen as they're formed. The children of a widget (a window is a widget too) will not be displayed until the window itself is shown using the show() function.
Signals: add_accelerator Called when an accelarator (keyboard shortcut) is added to the widget
button_press_event Called when a mouse button is pressed
button_release_event Called when a mouse button is released
client_event An event sent by another client application
configure_event The size, position or stacking order of the widget has changed
debug_msg
delete_event Called when the user has requested that the widget should be closed
destroy_event Called when the widget is destroyed
drag_begin Called when the drag is initiated, on the sending side
drag_data_delete Called when the data can be safely deleted (there is no need to use this function in pigtk, it's all handled automatically)
drag_data_get Called on the sending side when the drop is initiated
drag_data_received Called on the receiving side when the drop is finished.
drag_drop Called on the receiving side when the drop is initiated
drag_end Called when the drag is finished, on the sending side
drag_leave Called when the mouse leaves the widget while the user is dragging something
drag_motion Called on the receiving side when the cursor is moved over the widget while dragging something
draw Called when the widget should draw itself.
draw_default Called when the widget should draw itself, and indicate that it's the default widget
draw_focus Called when the widget should draw itself, and a focus indicator around itself (or otherwise indicate that is has the keyboard focus)
enter_notify_event Called when the mouse enters the widget
event Called for all events
expose_event Called when the widget, or a part of the widget gets and expose event
focus_in_event The keyboard focus has entered the widget
focus_out_event The keyboard focus has left the widget
hide Called when the widget is hidden
key_press_event Called when a keyboard key is pressed
key_release_event Called when a keyboard key is released
leave_notify_event Called when the mouse leaves the widget
map Called when the window associated with the widget is mapped
map_event Called just before the 'map' signal
motion_notify_event Called when the mouse is moved inside the widget
no_expose_event
other_event
parent_set Called when the parent widget is changed
property_notify_event Called when a property of the GDK window associated with the widget is changed
proximity_in_event
proximity_out_event
realize Called when the widget is realized. Some methods cannot be used until the widget has been realized, if you get assertion errors related to 'w->window' or similar, this is probably the cause.
remove_accelerator Called when an accelerator (keyboard shortcut) is removed from the widget
selection_clear_event NYI
selection_notify_event NYI
selection_received NYI
selection_request_event NYI
show Called when the widget is shown
size_allocate Called when the widget gets the size it should be
size_request Called when the widget should calculate how big it wants to be
state_changed
style_set Called when the style is changed
unmap Called when the window associated with the widget is unmapped
unmap_event Called just before the 'unmap' signal
unrealize Called when the widget is unrealized.
visibility_notify_event The widget has been mapped, unmapped, hidden, or otherwise had its visibility modified
- Inherit Object
inherit GTK1.Object : Object