unreliable notebook page changing events

Debian Testing:

python-wxgtk2.6:
  Installiert:2.6.3.2.1
  Mögliche Pakete:2.6.3.2.1
  Versions-Tabelle:
*** 2.6.3.2.1 0
        990 ftp://ftp.gwdg.de testing/main Packages
        100 /var/lib/dpkg/status

I am attaching the relevant code snippet handling the
notebook events. Maybe I am just to stupid to handle them
properly.

Karsten

tmp.py (5.79 KB)

···

On Sun, Jun 18, 2006 at 01:22:59PM -0700, Robin Dunn wrote:

>I have a panel with a notebook child. The panel listens to
>EVT_NOTEBOOK_PAGE_CHANGING and EVT_NOTEBOOK_PAGE_CHANGED.
>Inside EVT_NOTEBOOK_PAGE_CHANGING I check whether the new
>page can be activated or not. If it cannot be activated the
>event is vetoed. The sequence is as follows:
>
>- user clicks notebook tab
>- that tab is checked for raise-ability in the
> EVT_NOTEBOOK_PAGE_CHANGING handler
>- the event is vetoed
>- the context is changed such that the page now *can* be
> raised
>- clicking on the same tab *again* after changing
> the context still does not allow the tab to be raised
>- in fact, the tab does not even receive *any* event
>- clicking *another* tab, then coming back *does* allow the
> tab to be raised with the proper events happening *without*
> a change in context ...

Which platform and version?

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346