[pygtk] dialog popup under mouse

TK Soh teekaysoh at gmail.com
Wed Jan 9 08:45:53 WST 2008


On Jan 8, 2008 4:27 PM, Chris Cole <ccole2 at mix.wvu.edu> 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   pygtk at daa.com.au
> > 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.


More information about the pygtk mailing list