ActionBar
-
class ActionBar(**properties: Any)
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
- Constructors:
ActionBar(**properties)
new() -> Gtk.Widget
Constructors
-
class ActionBar
-
classmethod new() → Widget
Creates a new GtkActionBar
widget.
Methods
-
class ActionBar
-
get_center_widget() → Widget | None
Retrieves the center bar widget of the bar.
-
get_revealed() → bool
Gets whether the contents of the action bar are revealed.
-
pack_end(child: Widget) → None
Adds child
to action_bar
, packed with reference to the
end of the action_bar
.
- Parameters:
child – the GtkWidget
to be added to action_bar
-
pack_start(child: Widget) → None
Adds child
to action_bar
, packed with reference to the
start of the action_bar
.
- Parameters:
child – the GtkWidget
to be added to action_bar
-
remove(child: Widget) → None
Removes a child from action_bar
.
- Parameters:
child – the GtkWidget
to be removed
-
set_center_widget(center_widget: Widget | None = None) → None
Sets the center widget for the GtkActionBar
.
- Parameters:
center_widget – a widget to use for the center
-
set_revealed(revealed: bool) → None
Reveals or conceals the content of the action bar.
Note: this does not show or hide action_bar
in the
visible
sense, so revealing has
no effect if the action bar is hidden.
- Parameters:
revealed – The new value of the property
Properties
-
class ActionBar
-
props.revealed: bool
Controls whether the action bar shows its contents.