A pushbutton widget that issues a signal when clicked.
The GtkButton widget is usually displayed as a pushbutton with a text label, GtkLabel, although it can contain any valid widget. The GtkButton is generally used to attach a callback function or method that is called when the button is clicked.
GtkButton::new_from_stock (string stock_id);-- Creates a GtkButton from stock.
clicked() Emits the "clicked" signal to the button. enter() Emits the "enter" signal to the button. get_alignment() Returns the xalign and the yalign properties. get_focus_on_click() Returns the value of the "focus-on-click" property. get_image() Returns the widget set as the image for the button. get_label() Retrieves the text from the button label. get_relief() Retrieves the current relief style. get_use_stock() Returns the "use_stock" property. get_use_underline() Returns the "use_underline" property. leave() Emits the "leave" signal to the button. pressed() Emits the "pressed" signal to the button. released() Emits the "released" signal to the button. set_alignment() Sets the "xalign" and "yalign" properties. set_focus_on_click() Sets the "focus-on-click" property. set_image() Sets the widget as an image for the button. set_label() Sets the text of the button. set_relief() Sets the current relief style of the button. set_use_stock() Sets the "use_stock" property. set_use_underline() Sets the "use_underline" property. "activate" Emitted when the activate method is called. "clicked" Emitted when the user clicks the button. "enter" Emitted when the mouse pointer enters the button. "leave" Emitted when the mouse pointer leaves the button. "pressed" Emitted when the mouse button is pressed over the button. "released" Emitted when the mouse button is released over the button.