Boxes and Grids
How to organize widgets using common containers
Gtk.Box
var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 6);var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 6);
box.append (new Gtk.Label ("Label 1"));
box.append (new Gtk.Label ("Label 2"));var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 6);
box.append (new Gtk.Label ("Label 1"));
box.append (new Gtk.Label ("Label 2"));
var main_window = new Gtk.ApplicationWindow (this) {
child = box
};Gtk.Grid
Review
Last updated
Was this helpful?