wxNotebook

Gandalf gandalf at geochemsource.com
Wed Mar 24 15:03:09 EST 2004


 Hi All!

I would like to hide and show pages in a notebook. Here is what I do 
right now:

   def SetVisiblePages(self,pages):
       for index in range(self.notebook.GetPageCount()):
           self.notebook.GetPage(index).Show(index in pages)

But it does not work. All pages remain visible. Only their content will 
be invisible.
I also tried this:

self.notebook.Show(index in pages)

but it hides the whole nootebook. How can I hide/show individual pages?
Thanks in advance.

  Laci 2.0

p.s.: I sent this originally to the wxpython-users list but it never 
arrived.





More information about the Python-list mailing list