centering a dialog in pygtk

E

Emmanuele Bassi

* (e-mail address removed) [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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top