Problem with NOTEBOOK_PAGE_CHANGING event on Windows
Marco Meoni - Sbaush
sbaush at gmail.com
Fri May 4 08:14:59 PDT 2007
Hello everybody,
I'm developing a wxPython application,that is composed by a toolbar, a
listbook and in each listbook page there is a notebook; I test it on
Linux (python 2.5 wxpy 2.8) and Windows XP (python 2.5 wxpy 2.8).
Our matter is that on Linux this works perfectly, but on Windows there
are a lot of problems with the relation between NOTEBOOK_PAGE_CHANGING
and Toolbar.
Infact every time it changes the notebook page we want to show another
toolbar, so there is an association Toolbar/Notebook page.
We have already had some problems on Windows in refreshing the Toolbar
at any notebook page changing and we asked some help in ML with
subject "[wxPython-users] Toolbar anomaly between windows and linux".
Then we solved it, calling every time the realize() method, when we
want to refresh the toolbar.
The event NOTEBOOK_PAGE_CHANGING invokes the
self.MainView.toolbar.ClearTools(), than add the Tools at the toolbar,
and then call the self.MainView.toolbar.Realize() method.
Now the problem is another: the toolbar is rightly refreshed also in
Windows, but there is a issue (only under Win); when the event
EVT_NOTEBOOK_PAGE_CHANGING is called, it switches the toolbar to the
mistaken notebook page and it inverts the toolbar/notebook page
association.
Moreover in a notebook page (a panel) we put a ogl canvas and ,another
time, it works well on Linux, instead in Windows the Canvas does not
fit the all panel size and it appears too small (as a litte
rectangle).
Are known in wxPython "world" some problems between wx toolbar and MS
Windows? Or are known some problems beetween notebook events and
windows?
Thanks all in advance.
--
Marco Meoni (Sbaush)
More information about the wxpython-users
mailing list