I'm currently trying to center my application window, but it seems to be impossible with PyGObject (GTK+ 3). Indeed, with pyGTK, I was doing it this way:
AttributeError: 'gi.repository.Gtk' object has no attribute 'WIN_POS_CENTER'
pydoc tells you what you need to know:
>>> help(window.set_position) Help on method set_position in module gi.repository.Gtk: set_position(*args, **kwargs) method of gi.overrides.Gtk.Window instance set_position(self, position:Gtk.WindowPosition)
Gtk.WindowPosition wraps the enum values, so try:
edit: seems that for newer versions the docstring isn't displayed by
help(window.set_position) anymore, use