[pygtk] dialog popup under mouse
Chris Cole
ccole2 at mix.wvu.edu
Wed Jan 9 01:27:09 WST 2008
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)
Chris
More information about the pygtk
mailing list