Buttons won't display unitil I mouse over them . . . .

Hi,

I’m a few weeks into Wxpython and after building a fully functioning GUI on OSX, I’m trying to test it out on Windows7.

The GUI has a background image and four buttons. No trouble in OSX, but after trying this half a dozen different ways in Windows7 the furthest I can get is to have the buttons appear after a mouseover. I need them to appear when the GUI fires up. The buttons do what they need to when the finally appear, the trouble is just getting them there.

I wondering if others have experienced this, and have any suggestions . . . somekind of problem panel/parent relationship?

Thanks,

Dan

windows7.py (5.54 KB)

osx.py (5.1 KB)

In your osx.py you have a panel in the frame which takes up all the space and your background image is drawn unto the frame, so behind the panel.

I can't test on OSX but the attached works for me on Windows 8.1 with both wxPython 2.8.12.1 and a recent build of wxPython Phoenix.

Werner

osx.py (5.05 KB)

···

On 9/3/2015 20:59, Dan Sifton wrote:

Hi,

I'm a few weeks into Wxpython and after building a fully functioning GUI on OSX, I'm trying to test it out on Windows7.

The GUI has a background image and four buttons. No trouble in OSX, but after trying this half a dozen different ways in Windows7 the furthest I can get is to have the buttons appear after a mouseover. I need them to appear when the GUI fires up. The buttons do what they need to when the finally appear, the trouble is just getting them there.

I wondering if others have experienced this, and have any suggestions . . . somekind of problem panel/parent relationship?

Thanks Werner. I added the full path to the image (for XP) and it worked like a dream!

D.

···

On Friday, September 4, 2015 at 1:51:00 AM UTC-7, werner wrote:

On 9/3/2015 20:59, Dan Sifton wrote:

Hi,

I’m a few weeks into Wxpython and after building a fully functioning
GUI on OSX, I’m trying to test it out on Windows7.

The GUI has a background image and four buttons. No trouble in OSX,
but after trying this half a dozen different ways in Windows7 the
furthest I can get is to have the buttons appear after a mouseover. I
need them to appear when the GUI fires up. The buttons do what they
need to when the finally appear, the trouble is just getting them there.

I wondering if others have experienced this, and have any suggestions
. . . somekind of problem panel/parent relationship?

In your osx.py you have a panel in the frame which takes up all the
space and your background image is drawn unto the frame, so behind the
panel.

I can’t test on OSX but the attached works for me on Windows 8.1 with
both wxPython 2.8.12.1 and a recent build of wxPython Phoenix.

Werner