I have a notebook with 8 pages which each shows some data from a database.
If there is much data the loading is a bit slow and I would like to obtimize it.
I was thinking of just getting the data from the database of the page which is actually shown/active.
The pages are wx.Panel's and I thought of using wx.EVT_SET_FOCUS but that doesn't seem to fire when I click on particular tab on the notebook.
I got it mostly working with a combination of checking panel.IsShownOnScreen() and notebook.EVT_FLATNOTEBOOK_PAGE_CHANGING but I wonder if there are other alternatives.
I got it mostly working with a combination of checking
panel.IsShownOnScreen
() and notebook.EVT_FLATNOTEBOOK_PAGE_CHANGING but
I wonder if there are other alternatives.
Your notebook is a flat notebook? Or an ordinary notebook?
It is a flatnotebook, but that should not make a difference except for some of the function/event name changes, no?
Werner
···
On 6/15/07, *Werner F. Bruhin* <werner.bruhin@free.fr > <mailto:werner.bruhin@free.fr>> wrote:
I got it mostly working with a combination of checking
panel.IsShownOnScreen () and
notebook.EVT_FLATNOTEBOOK_PAGE_CHANGING but
I wonder if there are other alternatives.
I got it mostly working with a combination of checking panel.IsShownOnScreen() and notebook.EVT_FLATNOTEBOOK_PAGE_CHANGING but I wonder if there are other alternatives.
That's the way I would do it.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I got it mostly working with a combination of checking panel.IsShownOnScreen() and notebook.EVT_FLATNOTEBOOK_PAGE_CHANGING but I wonder if there are other alternatives.
That's the way I would do it.
Thanks, it is comforting to know one is on the right track.