On Jan 8, 2008 4:27 PM, Chris Cole <[EMAIL PROTECTED]> wrote: > > TK Soh wrote: > > Every a dialog is display, it seems to be placed at random around the > > screen. I wonder if there's a way to position the dialog so that it > > will be displayed, say, with the dialog centered around the mouse > > position. > > _______________________________________________ > > pygtk mailing list [email protected] > > http://www.daa.com.au/mailman/listinfo/pygtk > > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > > > All you should need is the following: > > dialog.set_position(gtk.WIN_POS_MOUSE)
Thanks. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
