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

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top