Zeb | 4 Jul 04:27
Picon

agw.aui LoadPerspective problem


In my program, I write the following 2 methods to add/remove the
notebook's pages.

	def  AddPanel(self, panel):
		self._mainNotebook.AddPage(panel, panel.GetLabel(), False)
		panel.Show()
		self._mainNotebook.Update()

	def RemovePanel(self, idx):
		page = self._mainNotebook.GetPage(idx)
		page.Hide()
		self._mainNotebook.RemovePage(idx)
		self._mainNotebook.Update()

When the program started, I create many panels and call 'AddPanel' to
add all panels to the notebook.
Then I call 'RemovePanel' to hide one(Le'ts call it panelA) and call
notebook's 'SavePerspective', and exit the program.

When I start the program again, call notebook's 'LoadPerspective',
everything is OK. The panelA is not in the notebook also.

But, when I called:
self._mainNotebook.GetPageIndex(panelA):
The return value is not wx.NOT_FOUND.

Is this a bug?

Thank you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane