[pygtk] libglade + Dialog centred on parent

Christian Robottom Reis kiko at async.com.br
Thu Sep 23 11:45:49 WST 2004


On Wed, Sep 22, 2004 at 11:39:25AM +0100, Gustavo J. A. M. Carneiro wrote:
> Qua, 2004-09-22 às 09:41 +0200, Johan Dahlin escreveu:
> > > 	any quick help on who can I make "center on parent" work with
> > > gtk.glade?  Is there a way to define a "parent" from GLADE? How can I do
> > > it manually with PyGTK?
> > 
> > dialog.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
> 
> > dialog.set_modal(parent)
>              ^^^^^ 
>   Ahem.. I think Johan means: dialog.set_transient_for(parent)

Which by the way was already in FAQ 10.3 (posters, read the FAQ!)

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331


More information about the pygtk mailing list