Panel.Frame¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
If the frame may be closed |
||
r |
If there are any panels added |
||
r/w/en |
Placeholder |
||
r/w/en |
Visible Child |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted when the frame should decide if it can adopt a |
|
This signal is emitted when the page widget will be closed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Panel.Frame(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Panel.Frame
is a widget containing panels to display in an area. The widgets are added internally in an [class`Adw`.TabView] to display them one at a time like in a stack.A
Panel.Frame
can also have a header widget that will be displayed above the panels.- classmethod new()¶
- Returns:
a newly created
Panel.Frame
object.- Return type:
Create a new
Panel.Frame
.
- add(panel)¶
- Parameters:
panel (
Panel.Widget
) – aPanel.Widget
to add
Adds a widget to the frame.
- add_before(panel, sibling)¶
- Parameters:
panel (
Panel.Widget
) – thePanel.Widget
to add.sibling (
Panel.Widget
) – the siblingPanel.Widget
to add the panel before.
Add panel before sibling in the
Panel.Frame
.
- get_closeable()¶
-
Tells if the panel frame is closeable.
- get_empty()¶
-
Tells if the panel frame is empty.
- get_header()¶
- Returns:
a
Panel.FrameHeader
orNone
- Return type:
Gets the header for the frame.
- get_n_pages()¶
- Returns:
The number of pages.
- Return type:
Gets the number of pages in the panel frame.
- get_page(n)¶
- Parameters:
n (
int
) – the index of the page- Returns:
a
Panel.Widget
orNone
- Return type:
Panel.Widget
orNone
Gets the page with the given index, if any.
- get_pages()¶
- Returns:
- Return type:
Get the pages for the frame.
- get_placeholder()¶
- Returns:
a
Gtk.Widget
orNone
- Return type:
Gtk.Widget
orNone
Gets the placeholder widget, if any.
- get_position()¶
- Returns:
- Return type:
Gets the
Panel.Position
for the frame.
- get_requested_size()¶
- Returns:
the requested size.
- Return type:
Gets the requested size for the panel frame.
- get_visible_child()¶
- Returns:
a
Panel.Widget
orNone
- Return type:
Panel.Widget
orNone
Gets the widget of the currently visible child.
- remove(panel)¶
- Parameters:
panel (
Panel.Widget
) – aPanel.Widget
to remove.
Removes a widget from the frame.
- set_child_pinned(child, pinned)¶
- Parameters:
child (
Panel.Widget
) – aPanel.Widget
pinned (
bool
) – if widget should be pinned
Set pinned state of child.
New in version 1.2.
- set_header(header)¶
- Parameters:
header (
Panel.FrameHeader
orNone
) – aPanel.FrameHeader
Sets the header for the frame, such as a
Panel.FrameSwitcher
.
- set_placeholder(placeholder)¶
- Parameters:
placeholder (
Gtk.Widget
orNone
) – aGtk.Widget
orNone
Sets the placeholder widget for the frame.
The placeholder widget is displayed when there are no pages to display in the frame.
- set_requested_size(requested_size)¶
- Parameters:
requested_size (
int
) – the requested size.
Sets the requested size for the panel frame.
- set_visible_child(widget)¶
- Parameters:
widget (
Panel.Widget
) – aPanel.Widget
Sets the current page to the child specified in widget.
- do_adopt_widget(widget) virtual¶
- Parameters:
widget (
Panel.Widget
) –- Return type:
- do_page_closed(widget) virtual¶
- Parameters:
widget (
Panel.Widget
) –
Signal Details¶
- Panel.Frame.signals.adopt_widget(frame, widget)¶
- Signal Name:
adopt-widget
- Flags:
- Parameters:
frame (
Panel.Frame
) – The object which received the signalwidget (
Panel.Widget
) – aPanel.Widget
- Returns:
- Return type:
This signal is emitted when the frame should decide if it can adopt a
Panel.Widget
dropped on the frame.If
Gdk.EVENT_STOP
is returned, then the widget will not be adopted.New in version 1.2.
- Panel.Frame.signals.page_closed(frame, widget)¶
- Signal Name:
page-closed
- Flags:
- Parameters:
frame (
Panel.Frame
) – The object which received the signalwidget (
Panel.Widget
) – aPanel.Widget
This signal is emitted when the page widget will be closed.
New in version 1.2.
Property Details¶
- Panel.Frame.props.closeable¶
-
If the frame may be closed
- Panel.Frame.props.empty¶
-
If there are any panels added
- Panel.Frame.props.placeholder¶
- Name:
placeholder
- Type:
- Default Value:
- Flags:
Placeholder
- Panel.Frame.props.visible_child¶
- Name:
visible-child
- Type:
- Default Value:
- Flags:
Visible Child