centering a dialog in pygtk
Emmanuele Bassi
zefram at wolverine.lohacker.invalid
Mon Sep 29 19:23:02 EDT 2003
* sjsmith3 at comcast.net [2003-09-26 16:06]:
> Is there a way to center a dialog on a screen?
This should be done by the window manager.
Nevertheless, you could force the position of a window by using the
gtk.Window::set_position method:
w = gtk.Window(gtk.WINDOW_TOPLEVEL)
w.set_position(gtk.WIN_POS_CENTER)
Bye,
Emmanuele.
--
Emmanuele Bassi | [ http://digilander.libero.it/ebassi/ ]
emmanuele.bassi(at)iol.it | Linux User #170621, http://counter.li.org
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
More information about the Python-list
mailing list