How can I hide a window, and then show it again in the same position? Whenever I hide the extra window in the little program below, then show it again, it goes back to its original positon (the position where it was first created). I've tried setting up a EVT_SHOW handler, remembering the position when it's hidden, and setting it when it's shown. I've also tried a similar thing, over-riding the Show() method of the class. But neither approach seems to work. Surely there must be a way to do this. Thanks for helping.
I'm using the latest version of wxGTK on Linux, python version 2.3.
How can I hide a window, and then show it again in the same position?
Whenever I hide the extra window in the little program below, then
show it again, it goes back to its original positon (the position
where it was first created). I've tried setting up a EVT_SHOW
handler, remembering the position when it's hidden, and setting it
when it's shown. I've also tried a similar thing, over-riding the
Show() method of the class. But neither approach seems to work.
Surely there must be a way to do this. Thanks for helping.
This probably depends on the Window Manager you are using, and it's settings. The WM always has final say on sizing and positioning of top-level windows. (BTW, your sample works fine for me on KDE 3.1.)
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Are you familiar at all with IceWM? I've gone through the preferences file, and can't find a way to correct this behavior. I realize this question is kind of off-topic.
···
On Mon, 30 Aug 2004 14:57:32 -0700 Robin Dunn <robin@alldunn.com> wrote:
Scott wrote:
> How can I hide a window, and then show it again in the same position?
> Whenever I hide the extra window in the little program below, then
> show it again, it goes back to its original positon (the position
> where it was first created). I've tried setting up a EVT_SHOW
> handler, remembering the position when it's hidden, and setting it
> when it's shown. I've also tried a similar thing, over-riding the
> Show() method of the class. But neither approach seems to work.
> Surely there must be a way to do this. Thanks for helping.
>
This probably depends on the Window Manager you are using, and it's
settings. The WM always has final say on sizing and positioning of
top-level windows. (BTW, your sample works fine for me on KDE 3.1.)