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
|
gtk.Container Signal Prototypes
gtk.ToolItem Signal Prototypes
gtk.ToolButton Signal Prototypes
"toggled" | def callback( |
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
.
gtk.ToggleToolButton(stock_id
=None)
| 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.
def set_active(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.
def callback(toggletoolbutton
, user_param1
, ...
)
| the toggletoolbutton that received the signal |
| the first user parameter (if any) specified
with the connect () |
| 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.