Gtk.Orientable¶
- Implementations:
Gtk.Box
,Gtk.BoxLayout
,Gtk.CellAreaBox
,Gtk.CellRendererProgress
,Gtk.CellView
,Gtk.CenterBox
,Gtk.FlowBox
,Gtk.Grid
,Gtk.LevelBar
,Gtk.ListBase
,Gtk.Paned
,Gtk.ProgressBar
,Gtk.Range
,Gtk.ScaleButton
,Gtk.Scrollbar
,Gtk.Separator
,Gtk.SpinButton
,Gtk.StackSwitcher
Methods¶
|
Virtual Methods¶
None
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
None
Fields¶
None
Class Details¶
- class Gtk.Orientable¶
- Bases:
- Structure:
The
GtkOrientable
interface is implemented by all widgets that can be oriented horizontally or vertically.GtkOrientable
is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to “flip”.- CSS nodes
GtkWidget
types implementing theGtkOrientable
interface will automatically acquire thehorizontal
orvertical
CSS class depending on the value of the [property`Gtk`.Orientable:orientation] property.- get_orientation()[source]¶
- Returns:
the orientation of the self
- Return type:
Retrieves the orientation of the self.
- set_orientation(orientation)[source]¶
- Parameters:
orientation (
Gtk.Orientation
) – the orientable’s new orientation
Sets the orientation of the self.
Property Details¶
- Gtk.Orientable.props.orientation¶
- Name:
orientation
- Type:
- Default Value:
- Flags:
The orientation of the orientable.