Gtk.VBox¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
box |
r |
Class Details¶
- class Gtk.VBox(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.VBoxis a container that organizes child widgets into a single column.Use the
Gtk.Boxpacking interface to determine the arrangement, spacing, height, and alignment ofGtk.VBoxchildren.All children are allocated the same width.
Gtk.VBoxhas been deprecated. You can useGtk.Boxwith aGtk.Orientable:orientationset toGtk.Orientation.VERTICALinstead when callingGtk.Box.new(), which is a very quick and easy change.If you have derived your own classes from
Gtk.VBox, you can change the inheritance to derive directly fromGtk.Box, and set theGtk.Orientable:orientationproperty toGtk.Orientation.VERTICALin your instance init function, with a call like:gtk_orientable_set_orientation (GTK_ORIENTABLE (object), GTK_ORIENTATION_VERTICAL);
If you have a grid-like layout composed of nested boxes, and you don’t need first-child or last-child styling, the recommendation is to switch to
Gtk.Grid. For more information about migrating toGtk.Grid, see Migrating from other containers to GtkGrid.- classmethod new(homogeneous, spacing)[source]¶
- Parameters:
- Returns:
a new
Gtk.VBox.- Return type:
Creates a new
Gtk.VBox.Deprecated since version 3.2: You should use
Gtk.Box.new() with aGtk.Orientation.VERTICALGtk.Orientable:orientationinstead