XApp.VisibilityGroup¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
sensitive |
r/w |
The current sensitive state of the group. There is no guarantee that all members are actually in this state. |
|
visible |
r/w |
The current visible state of the group. There is no guarantee that all members are actually in this state. |
|
widgets |
r/w |
The |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class XApp.VisibilityGroup¶
A group of widgets that can have their visibility and sensitivity controlled together.
- classmethod new(visible, sensitive, widgets)¶
- Parameters:
visible (
bool
) – starting visibility statesensitive (
bool
) – starting sensitivity statewidgets ([
Gtk.Widget
] orNone
) – list ofGtk.Widgets
to add to the group.
- Returns:
a new
XApp.VisibilityGroup
. UseXApp.VisibilityGroup.free
when finished.- Return type:
Creates a new
XApp.VisibilityGroup
.If widgets is not
None
, adds these widgets to the group with the starting visibility and sensitivity state.New in version 2.2.15.
- add_widget(widget)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
to add to the group
Adds widget to the visibility group.
New in version 2.2.15.
- free()¶
Destroys the
XApp.VisibilityGroup
.New in version 2.2.15.
- get_sensitive()¶
- Returns:
The sensitivity state of the group.
- Return type:
Get the sensitivity of the group.
There is no guarantee that all widgets in the group actually are in the returned state, if they’ve had their sensitivity individually modified since the last time the group was set.
New in version 2.2.15.
- get_visible()¶
- Returns:
The visibility state of the group.
- Return type:
Get the visibility of the group.
There is no guarantee that all widgets in the group actually are in the returned state, if they’ve had their visibility individually modified since the last time the group was set.
New in version 2.2.15.
- get_widgets()¶
- Returns:
a list of members of the group.
The list is owned by XApp, do not free.
- Return type:
Returns the members of the group or
None
if the group is empty.New in version 2.2.15.
- hide()¶
Hide all widgets in the group.
New in version 2.2.15.
- remove_widget(widget)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
to remove from the group- Returns:
True
if the widget was found and removed.- Return type:
New in version 2.2.15.
- set_sensitive(sensitive)¶
-
Set the sensitivity of all widgets in group.
New in version 2.2.15.
- set_visible(visible)¶
-
Set the visibility of all widgets in the group.
New in version 2.2.15.
- set_widgets(widgets)¶
- Parameters:
widgets ([
Gtk.Widget
] orNone
) – The widgets to add to this group, replacing any existing ones.
New in version 2.2.15.
- show()¶
Show all widgets in the group.
New in version 2.2.15.