Hello Christian, The problem is that the window is not the active foreground window anymore after the move(). This happens on my Linux redhat 8.0 machine, using pygtk 1.99.16. It does not happen under Windows NT. set_uposition() gives a deprecationwarning, so I don't want to use it in my 'new' application. (right now, I have Windows NT, so I can't check if it does solve the problem) By the way: I wanted to send a button event to the window, maybe that will activate the window, but I can't get it done....
Thanks for your reaction, Christian, Greets and best whishes, Rene Olsthoorn. ----- Original Message ----- From: Christian Reis <[EMAIL PROTECTED]> Date: Wed, 2 Apr 2003 10:07:22 -0300 To: Rene Olsthoorn <[EMAIL PROTECTED]> Subject: Re: [pygtk] Window deactivated after a move() > On Wed, Apr 02, 2003 at 01:00:13AM -0500, Rene Olsthoorn wrote: > > # In my application, I want to restore the size and position > > # of windows which are stored in an ini-file. > > # This is the problem: when using 'move' after the show() > > # function, the window loses it activation/focus. > > # Doing the move() before the show() doesn't position the > > # window correct. So that's no solution. > > Is there something like set_usize()/set_uposition() you can use instead > of move? > > What does it loose exactly? Focus? Or does it deactivate? Or both? :-) > > > # Perhaps I can send a mouse-click event to the window > > # after the move() has been done, but the GdkEventButton > > # class seems not to be available in PyGTK. > > Emitting X events isn't possible in PyGTK, AFAIK. > > Take care, > -- > Christian Reis, Senior Engineer, Async Open Source, Brazil. > http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
