"active"Read-WriteIf the toggle tool button should be pressed in or not.
This property is available in GTK+ 2.8 and above.
gtk.ToggleToolButton Style Propertiesgtk.Widget Style Propertiesgtk.ToolButton Style Propertiesgtk.ToggleToolButton Signal Prototypesgobject.GObject Signal Prototypesgtk.Object Signal Prototypesgtk.Widget Signal Prototypesgtk.Container Signal Prototypesgtk.ToolItem Signal Prototypesgtk.ToolButton Signal Prototypes"toggled"callbacktoggletoolbuttonuser_param1...DescriptionThis 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.Constructorgtk.ToggleToolButtonstock_idNonestock_id :the name of a stock itemReturns :a newly created gtk.ToggleToolButtonThis 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.Methodsgtk.ToggleToolButton.set_activeset_activeis_activeis_active :if True the toggle tool
button is activeThis 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.gtk.ToggleToolButton.get_activeget_activeReturns :True if the toggle tool
button is pressed in (active)This method is available in PyGTK 2.4 and above.The get_active() method returns
True if the toggle tool button is pressed in (active) and
False if it is raised.SignalsThe "toggled" gtk.ToggleToolButton Signalcallbacktoggletoolbuttonuser_param1...toggletoolbutton :the toggletoolbutton that received the
signaluser_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.