Orientable
- class Orientable(*args, **kwargs)
Implementations: Box
, BoxLayout
, CellAreaBox
, CellRendererProgress
, CellView
, CenterBox
, FlowBox
, Grid
, GridView
, LevelBar
, ListBase
, ListView
, Paned
, ProgressBar
, Range
, Scale
, ScaleButton
, Scrollbar
, Separator
, ShortcutsGroup
, ShortcutsSection
, SpinButton
, StackSwitcher
, VolumeButton
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 the GtkOrientable
interface will
automatically acquire the horizontal
or vertical
CSS class depending on
the value of the orientation
property.
Methods
- class Orientable
- get_orientation() Orientation
Retrieves the orientation of the
orientable
.
- set_orientation(orientation: Orientation) None
Sets the orientation of the
orientable
.- Parameters:
orientation – the orientable’s new orientation
Properties
- class Orientable
- props.orientation: Orientation
The type of the None singleton.