Panel.Grid¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The “create-frame” signal is used to create a new frame within the grid. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Panel.Grid(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Panel.Grid
is a widget used to layout the dock item in the center area.- classmethod new()¶
- Returns:
a newly created
Panel.Grid
- Return type:
Creates a new
Panel.Grid
.
- add(widget)¶
- Parameters:
widget (
Panel.Widget
) – aPanel.Widget
the widget to add.
Add a
Panel.Widget
to the grid.
- agree_to_close_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
) – callback called when ready
Request to close, asynchronously. This will display the save dialog.
- agree_to_close_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- foreach_frame(callback, *user_data)¶
- Parameters:
callback (
Panel.FrameCallback
) – aPanel.FrameCallback
Calls callback for each
Panel.Frame
within grid.
- get_column(column)¶
- Parameters:
column (
int
) – a column index- Returns:
- Return type:
Gets the
Panel.GridColumn
for a column index.
- get_most_recent_column()¶
- Returns:
- Return type:
Gets the most recently acive column on a grid.
- get_most_recent_frame()¶
- Returns:
a #PanelGridFrame
- Return type:
Gets the most recently acive frame on a grid.
- get_n_columns()¶
- Returns:
The number of columns.
- Return type:
Gets the number of columns in the grid.
Signal Details¶
- Panel.Grid.signals.create_frame(grid)¶
- Signal Name:
create-frame
- Flags:
- Parameters:
grid (
Panel.Grid
) – The object which received the signal- Returns:
an unrooted
Panel.Frame
- Return type:
The “create-frame” signal is used to create a new frame within the grid.
Consumers of this signal are required to return an unrooted
Panel.Frame
from this signal. The first signal handler wins.