wxNotebook RemovePage problem

Just Rob wrote:

Hello,

After using RemovePage in a wxNotebook the page gets removed but
the tab stays. I've noticed this in my app and other people's (Pysoulseek for example).
Is there something I can do to fix this? I get this in wxPython 2.4.0.2 and 2.4.0.7, wxGTK version.

If I manually resize the window with the mouse it disappears.

Sample code? Does it still happen with 2.4.1.2?

Yes, I just tried 2.4.1.2, so I think its something I'm (not?) doing.

I simply call self.nb.RemovePage(self.nb.GetSelection())
I'm not sure if I need to do anything else. I tried .Refresh() on self (the panel) and
self.nb, but neither helped.

Thank you

···

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail

Just Rob wrote:

Just Rob wrote:

Hello,

After using RemovePage in a wxNotebook the page gets removed but
the tab stays. I've noticed this in my app and other people's (Pysoulseek for example).
Is there something I can do to fix this? I get this in wxPython 2.4.0.2 and 2.4.0.7, wxGTK version.

If I manually resize the window with the mouse it disappears.

Sample code? Does it still happen with 2.4.1.2?

Yes, I just tried 2.4.1.2, so I think its something I'm (not?) doing.

I simply call self.nb.RemovePage(self.nb.GetSelection())
I'm not sure if I need to do anything else. I tried .Refresh() on self (the panel) and
self.nb, but neither helped.

Try changing the selection to another page first.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!