EVT_SHOW in mac

The evt_show seems to work stangley in macOS. Consider the simple code posted:
how can I catch the fact that the panel is on the screen, if even the evt_show
is not catched?

mist_onshowMAC.py~ (1.69 KB)

What build are you using? EVT_SHOW bound to the panel is working for me with osx-carbon 2.9.1.1.

Otherwise one way to simulate the effect of EVT_SHOW is to add a EVT_IDLE handler for the panel class that calls the panel's IsShown method and if it is different than the last time the handler was called do whatever needs to be done when the visibility of the panel changes.

···

On 2/8/11 7:36 AM, tinauser@libero.it wrote:

The evt_show seems to work stangley in macOS. Consider the simple code posted:
how can I catch the fact that the panel is on the screen, if even the evt_show
is not catched?

--
Robin Dunn
Software Craftsman

I'm still running the 2.8.11...i'm a little afraid to move on, but if
that'll fixes the stuff, i guess i should give it a try...tomorrow :wink:

···

On Feb 8, 9:36 pm, Robin Dunn <ro...@alldunn.com> wrote:

On 2/8/11 7:36 AM, tinau...@libero.it wrote:

> The evt_show seems to work stangley in macOS. Consider the simple code posted:
> how can I catch the fact that the panel is on the screen, if even the evt_show
> is not catched?

What build are you using? EVT_SHOW bound to the panel is working for me
with osx-carbon 2.9.1.1.

Otherwise one way to simulate the effect of EVT_SHOW is to add a
EVT_IDLE handler for the panel class that calls the panel's IsShown
method and if it is different than the last time the handler was called
do whatever needs to be done when the visibility of the panel changes.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org