ApplicationWindow (Python) Tiffany Antopolski tiffany.antopolski@gmail.com 2012 Marta Maria Casetti mmcasetti@gmail.com 2012 GtkWindow subclass with GtkApplication support ApplicationWindow

The simplest GtkApplication Window which can support .

Code used to generate this example
Useful methods for a Gtk.ApplicationWindow widget

set_default_size(200, 100) sets the default size of the window to a width of 200 and a height of 100; if instead of a positive number we pass -1 we have the default size.

set_position(Gtk.WindowPosition.CENTER) centers the window. Other options are Gtk.WindowPosition.NONE, Gtk.WindowPosition.MOUSE, Gtk.WindowPosition.CENTER_ALWAYS, Gtk.WindowPosition.CENTER_ON_PARENT.

API References

In this sample we used the following:

GtkApplication

GtkApplicationWindow