|
class gtk.RadioToolButton(gtk.ToggleToolButton): |
+--gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.ToolItem +-- gtk.ToolButton +-- gtk.ToggleToolButton +-- gtk.RadioToolButton
gtk.ToggleToolButton Properties
|
gtk.Container Signal Prototypes
gtk.ToolItem Signal Prototypes
This widget is available in PyGTK 2.4 and above.
A gtk.RadioToolButton
is a gtk.ToolItem
that
contains a radio button, that is, a button that is part of a group of toggle
buttons where only one button can be active at a time. Use the gtk.RadioToolButton()
constructor to create a new gtk.RadioToolButton
.
gtk.RadioToolButton(group
=None, stock_id
=None)
| an existing gtk.RadioToolButton |
| the name of a stock item |
Returns : | a new gtk.RadioToolButton |
This constructor is available in PyGTK 2.4 and above.
Creates a new gtk.RadioToolButton
,
adding it to the same group as the gtk.RadioToolButton
specified by group
if it is not
None
. The new gtk.RadioToolButton
will contain an icon and label from the stock item specified by
stock_id
if it is not None
.
def set_group(group
)
| an existing gtk.RadioToolButton or None . |
This method is available in PyGTK 2.4 and above.
The set_group
() method adds the radio
tool button to the same group as the gtk.RadioToolButton
specified by group
.
In PyGTK 2.6.2 and above, if group
is
None
the radiotoolbutton will be removed from its current
group.
def get_group()
Returns : | a list containing the None |
This method is available in PyGTK 2.4 and above.
The get_group
() method returns a list
containing the gtk.RadioButton
objects that are in the same group as the radio tool button or
None
if the radiotoolbutton is not in a group.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.