I have a Notebook
in wxpython:
self.book = wx.Notebook(self, -1, style=0)
self.book.AddPage(self.book_a,_("a"))
self.book.AddPage(self.book_b,_("b"))
This code works fine. Evrything is as it should.
The thing is that I have later a condition if x==1:
that if it's true I need to hide/disable book_b
page (preferbly disable).
i wrote this code:
if x==1:
self.book_a.Hide()
but nothing happend. Then I tried:
if x==1:
self.book_a.Disable()
but also nothing happend.
If I do:
print self.book_a.Hide()
print self.book_a.Disable()
it returns
False
False
I know it means the operation faild and that why I don't see any change but I couldn't find in google or elsewhere when Hide()
or Disable()
return False.
Does anyone know what is the problem or in what cases Hide()
or Disable()
return false?