Hi all,
I have 2 panels in a sizer like this:
···
---
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.topPanel, 0,
wx.EXPAND|wx.ALL, 0)
self.topPanel.SetMinSize((1, 20))
self.mainSizer.Add(self.bottomPanel, 1,
wx.EXPAND|wx.ALL, 1)
---
self.bottomPanel size is dynamic, it depends on the
number of controls within. This panel's layout is
handled by another sizer.
At some point I need to hide the whole
self.bottomPanel
and the space it ocupied to be reused by other
controls.
I tried:
---
self.bottomPanel.Show(False)
self.Layout()
self.Update()
---
The controls disapear from bottomPanel but the panel
(or the space used by the panel) doesn't disapear
until I resize the window.
Any idea why?
Thanks
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
Ant1
2
We use:
self.currentPanel.Show( False )
self.currentPanel.Disable()
self.Unsplit( self.currentPanel )
···
On Fri, 8 Apr 2005 06:40:51 -0700 (PDT), Sorin C. wrote:
Hi all,
I have 2 panels in a sizer like this:
---
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.topPanel, 0,
wx.EXPAND|wx.ALL, 0)
self.topPanel.SetMinSize((1, 20))
self.mainSizer.Add(self.bottomPanel, 1,
wx.EXPAND|wx.ALL, 1)
---
self.bottomPanel size is dynamic, it depends on the
number of controls within. This panel's layout is
handled by another sizer.
At some point I need to hide the whole
self.bottomPanel
and the space it ocupied to be reused by other
controls.
I tried:
---
self.bottomPanel.Show(False)
self.Layout()
self.Update()
---
The controls disapear from bottomPanel but the panel (or the space
used by the panel) doesn't disapear until I resize the window. Any
idea why?
Thanks
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
--------------------------------------------------------------------
- To unsubscribe, e-mail: wxPython-users-
unsubscribe@lists.wxwidgets.org For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
Ant1
3
Whoops sorry, my last email won't help you. We call it a panel but it's
actually a splitter pane.
···
On Fri, 8 Apr 2005 22:16:50 +0800, Ant wrote:
We use:
self.currentPanel.Show( False )
self.currentPanel.Disable()
self.Unsplit( self.currentPanel )
On Fri, 8 Apr 2005 06:40:51 -0700 (PDT), Sorin C. wrote:
Hi all,
I have 2 panels in a sizer like this:
---
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.topPanel, 0,
wx.EXPAND|wx.ALL, 0)
self.topPanel.SetMinSize((1, 20))
self.mainSizer.Add(self.bottomPanel, 1,
wx.EXPAND|wx.ALL, 1)
---
self.bottomPanel size is dynamic, it depends on the number of
controls within. This panel's layout is handled by another sizer.
At some point I need to hide the whole
self.bottomPanel
and the space it ocupied to be reused by other
controls.
I tried:
---
self.bottomPanel.Show(False)
self.Layout()
self.Update()
---
The controls disapear from bottomPanel but the panel (or the
space used by the panel) doesn't disapear until I resize the
window. Any idea why?
Thanks
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
------------------------------------------------------------------
-- - To unsubscribe, e-mail: wxPython-users-
unsubscribe@lists.wxwidgets.org For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
--------------------------------------------------------------------
- To unsubscribe, e-mail: wxPython-users-
unsubscribe@lists.wxwidgets.org For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
The documentation for wx.Sizer suggests that
self.mainsizer.Show(self.bottomPanel, False)
self.mainsizer.Layout()
ought to work. Though I can't always get it to work like that.
David Jones
···
On Apr 08, 2005, at 14:40, Sorin C. wrote:
Hi all,
I have 2 panels in a sizer like this:
---
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.topPanel, 0,
wx.EXPAND|wx.ALL, 0)
self.topPanel.SetMinSize((1, 20))
self.mainSizer.Add(self.bottomPanel, 1,
wx.EXPAND|wx.ALL, 1)
---
self.bottomPanel size is dynamic, it depends on the
number of controls within. This panel's layout is
handled by another sizer.
At some point I need to hide the whole
self.bottomPanel
and the space it ocupied to be reused by other
controls.
I tried:
---
self.bottomPanel.Show(False)
self.Layout()
self.Update()
---
The controls disapear from bottomPanel but the panel
(or the space used by the panel) doesn't disapear
until I resize the window.
Any idea why?