gtk.ToggleToolButton — A gtk.ToolItem containing a toggle button (new in PyGTK 2.4)
class gtk.ToggleToolButton(gtk.ToolButton): |
+-- gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.ToolItem +-- gtk.ToolButton +-- gtk.ToggleToolButton |
|
gobject.GObject Signal Prototypes
gtk.Container Signal Prototypes
gtk.ToolItem Signal Prototypes
gtk.ToolButton Signal Prototypes
"toggled" | def callback(toggletoolbutton, user_param1, ...) |
This widget is available in PyGTK 2.4 and above.
A gtk.ToggleToolButton is a gtk.ToolItem that contains a toggle button. Use the gtk.ToggleToolButton() constructor to create a new gtk.ToggleToolButton.
|
stock_id : | the name of a stock item |
Returns : | a newly created gtk.ToggleToolButton |
This constructor is available in PyGTK 2.4 and above.
Creates a new gtk.ToggleToolButton. If stock_id is not None the toggle tool button contains the image and text from the specified stock item.
|
is_active : | if TRUE the toggle tool button is active |
This method is available in PyGTK 2.4 and above.
The set_active() method sets the status of the toggle tool button to the value specified by is_active. If is_active is TRUE the gtk.ToggleButton is 'pressed in' (active). This method causes the toggled signal to be emitted.
|
toggletoolbutton : | the toggletoolbutton that received the signal |
user_param1 : | the first user parameter (if any) specified with the connect() method |
... : | additional user parameters (if any) |
This signal is available in GTK+ 2.4 and above.
The "toggled" signal is emitted when the toggle tool button changes state.