SizeGroup
Superclasses: Object
Implemented Interfaces: Buildable
- Constructors:
SizeGroup(**properties)
new(mode:Gtk.SizeGroupMode) -> Gtk.SizeGroup
Constructors
- class SizeGroup
- classmethod new(mode: SizeGroupMode) SizeGroup
Create a new
GtkSizeGroup
.- Parameters:
mode – the mode for the new size group.
Methods
- class SizeGroup
- add_widget(widget: Widget) None
Adds a widget to a
GtkSizeGroup
.In the future, the requisition of the widget will be determined as the maximum of its requisition and the requisition of the other widgets in the size group. Whether this applies horizontally, vertically, or in both directions depends on the mode of the size group. See
set_mode
.When the widget is destroyed or no longer referenced elsewhere, it will be removed from the size group.
- Parameters:
widget – the
GtkWidget
to add
- get_mode() SizeGroupMode
Gets the current mode of the size group.
- remove_widget(widget: Widget) None
Removes a widget from a
GtkSizeGroup
.- Parameters:
widget – the
GtkWidget
to remove
- set_mode(mode: SizeGroupMode) None
Sets the
GtkSizeGroupMode
of the size group.The mode of the size group determines whether the widgets in the size group should all have the same horizontal requisition (
HORIZONTAL
) all have the same vertical requisition (VERTICAL
), or should all have the same requisition in both directions (BOTH
).- Parameters:
mode – the mode to set for the size group.
Properties
- class SizeGroup
- props.mode: SizeGroupMode
The direction in which the size group affects requested sizes.
Fields
- class SizeGroup
- parent_instance