3.0.2 Classic (Python 2.7.9) Display Issues on Mac 10.6.8

It appears there is a refresh/redraw issue on Mac 10.6 with wx 3.0.2 when pages are changed in notebooks and other controls. For instance, in the demo under the LabelBook control switching between LabelBook and FlatImageBook will leave remnants of the previous page on the new page. See attached images. If the window or frame is resized the current display will refresh itself to show the correct page. Has anyone else seen this or does this happen on later versions of OS X? Nevertheless, what is the remedy? This has halted further development of my app on Mac.

With 2.8.12, same Pyhton, version everything is OK.

(By the way if you are wondering why I haven’t upgraded to OS X 10.10, Apple has made it essentially impossible. I have a limited and slow internet connection and it is not possible to download a multi gigabyte update file without corruption. They do not offer it on disk. They suggest I go to an Apple store and download it. The nearest is only 250 miles away. It seems they have abandoned their more rural users.)

Screen shot 2015-03-31 at 10.11.20 AM.png

Screen shot 2015-03-31 at 10.11.50 AM.png

Hi,

···

On 3/31/2015 16:31, tsmorton wrote:

It appears there is a refresh/redraw issue on Mac 10.6 with wx 3.0.2 when pages are changed in notebooks and other controls. For instance, in the demo under the LabelBook control switching between LabelBook and FlatImageBook will leave remnants of the previous page on the new page. See attached images. If the window or frame is resized the current display will refresh itself to show the correct page. Has anyone else seen this or does this happen on later versions of OS X? Nevertheless, what is the remedy? This has halted further development of my app on Mac.

I don't see this issue on Windows 8 nor on Linux Mint 17.

What about adding a 'self.Refresh()' at the end of CreateLabelBook in the demo?

Werner

I tried that and Update as well with no success. It does work properly on Win 7 and Win 8 for me as well. it is just on Mac.

Tim

···

On Tuesday, March 31, 2015 at 10:47:15 AM UTC-4, werner wrote:

Hi,

On 3/31/2015 16:31, tsmorton wrote:

It appears there is a refresh/redraw issue on Mac 10.6 with wx 3.0.2
when pages are changed in notebooks and other controls. For instance,
in the demo under the LabelBook control switching between LabelBook
and FlatImageBook will leave remnants of the previous page on the new
page. See attached images. If the window or frame is resized the
current display will refresh itself to show the correct page. Has
anyone else seen this or does this happen on later versions of OS X?
Nevertheless, what is the remedy? This has halted further development
of my app on Mac.

I don’t see this issue on Windows 8 nor on Linux Mint 17.

What about adding a ‘self.Refresh()’ at the end of CreateLabelBook in
the demo?

Hhm, can you try wx.CallAfter(self.Refresh), or wx.CallLater(50,
self.Refresh) i.e. do the refresh after all other events are
handled.
Werner

···

On 3/31/2015 17:19, tsmorton wrote:

    On Tuesday, March 31, 2015 at 10:47:15 AM UTC-4, werner wrote:
      Hi,




      On 3/31/2015 16:31, tsmorton wrote:


      > It appears there is a refresh/redraw issue on Mac 10.6

with wx 3.0.2

      > when pages are changed in notebooks and other controls.

For instance,

      > in the demo under the LabelBook control switching between

LabelBook

      > and FlatImageBook will leave remnants of the previous

page on the new

      > page. See attached images. If the window or frame is

resized the

      > current display will refresh itself to show the correct

page. Has

      > anyone else seen this or does this happen on later

versions of OS X?

      > Nevertheless, what is the remedy? This has halted further

development

      > of my app on Mac.


      I don't see this issue on Windows 8 nor on Linux Mint 17.




      What about adding a 'self.Refresh()' at the end of

CreateLabelBook in

      the demo?
      I tried that and Update as well with no success. It does

work properly on Win 7 and Win 8 for me as well. it is just on
Mac.

Tried both with the same result…still garbled.

Tim

···

On Tuesday, March 31, 2015 at 11:24:15 AM UTC-4, werner wrote:

On 3/31/2015 17:19, tsmorton wrote:

    On Tuesday, March 31, 2015 at 10:47:15 AM UTC-4, werner wrote:
      Hi,




      On 3/31/2015 16:31, tsmorton wrote:


      > It appears there is a refresh/redraw issue on Mac 10.6

with wx 3.0.2

      > when pages are changed in notebooks and other controls.

For instance,

      > in the demo under the LabelBook control switching between

LabelBook

      > and FlatImageBook will leave remnants of the previous

page on the new

      > page. See attached images. If the window or frame is

resized the

      > current display will refresh itself to show the correct

page. Has

      > anyone else seen this or does this happen on later

versions of OS X?

      > Nevertheless, what is the remedy? This has halted further

development

      > of my app on Mac.


      I don't see this issue on Windows 8 nor on Linux Mint 17.




      What about adding a 'self.Refresh()' at the end of

CreateLabelBook in

      the demo?
      I tried that and Update as well with no success. It does

work properly on Win 7 and Win 8 for me as well. it is just on
Mac.

Hhm, can you try wx.CallAfter(self.Refresh), or wx.CallLater(50,

self.Refresh) i.e. do the refresh after all other events are
handled.

tsmorton wrote:

        Hi,

        > It appears there is a refresh/redraw issue on Mac 10.6 with
        wx 3.0.2
        > when pages are changed in notebooks and other controls. For
        instance,
        > in the demo under the LabelBook control switching between
        LabelBook
        > and FlatImageBook will leave remnants of the previous page
        on the new
        > page. See attached images. If the window or frame is resized
        the
        > current display will refresh itself to show the correct
        page. Has
        > anyone else seen this or does this happen on later versions
        of OS X?
        > Nevertheless, what is the remedy? This has halted further
        development
        > of my app on Mac.
        I don't see this issue on Windows 8 nor on Linux Mint 17.

        What about adding a 'self.Refresh()' at the end of
        CreateLabelBook in
        the demo?

    I tried that and Update as well with no success. It does work
    properly on Win 7 and Win 8 for me as well. it is just on Mac.

    Hhm, can you try wx.CallAfter(self.Refresh), or wx.CallLater(50,
    self.Refresh) i.e. do the refresh after all other events are handled.

Tried both with the same result...still garbled.

It's not happening here with OSX 10.8. My 10.6 machine died a couple weeks back so I don't have an easy way to test there.

If you haven't already tried it you may want to try calling Refresh on the labelbook itself instead of the demo panel. Also I notice some use of Freeze and Thaw in there, so just in case you should make sure that the Thaw is not getting bypassed somehow.

···

On Tuesday, March 31, 2015 at 11:24:15 AM UTC-4, werner wrote:
    On 3/31/2015 17:19, tsmorton wrote:

    On Tuesday, March 31, 2015 at 10:47:15 AM UTC-4, werner wrote:
        On 3/31/2015 16:31, tsmorton wrote:

--
Robin Dunn
Software Craftsman

If you haven’t already tried it you may want to try calling Refresh on
the labelbook itself instead of the demo panel. Also I notice some use
of Freeze and Thaw in there, so just in case you should make sure that
the Thaw is not getting bypassed somehow.

Thanks, Robin, but I already tried Refresh on the labelbook itself with no difference. However, the issue is not just labelbook, it happens with flatnotebook as well loaded with html pages. When pages are changed, there is a mix of the two html pages until the page is scrolled or frame resized. I don’t believe the issue is in the agw widgets because I imported the same agw folder of widgets on 2.8.12 and all is well. The problem appears to be fairly deep.

Another related issue, the above is with the 32bit Python and Carbon wx. I tried 64bit Python with Cocoa wx and the issue is worse…pages appear frozen, menus don’t work, lots of issues. I don’t know if this is an OS X thing, wxWidgets thing or a wxPython thing. I’m stuck.

Thanks,
Tim

Good morning,

I believe part of the issue with the labelbook and flatnotebook is that, unless I am mistaken, the code for them has not been updated to match the changes in wxPython itself. I ran into some issues with other AGW widgets when I installed the latest wxPython.

···

On Wednesday, April 1, 2015 at 12:42:49 PM UTC-4, tsmorton wrote:

If you haven’t already tried it you may want to try calling Refresh on
the labelbook itself instead of the demo panel. Also I notice some use
of Freeze and Thaw in there, so just in case you should make sure that
the Thaw is not getting bypassed somehow.

Thanks, Robin, but I already tried Refresh on the labelbook itself with no difference. However, the issue is not just labelbook, it happens with flatnotebook as well loaded with html pages. When pages are changed, there is a mix of the two html pages until the page is scrolled or frame resized. I don’t believe the issue is in the agw widgets because I imported the same agw folder of widgets on 2.8.12 and all is well. The problem appears to be fairly deep.

Another related issue, the above is with the 32bit Python and Carbon wx. I tried 64bit Python with Cocoa wx and the issue is worse…pages appear frozen, menus don’t work, lots of issues. I don’t know if this is an OS X thing, wxWidgets thing or a wxPython thing. I’m stuck.

Thanks,
Tim

I believe part of the issue with the labelbook and flatnotebook is that, unless I am mistaken, the code for them has not been updated to match the changes in wxPython itself. I ran into some issues with other AGW widgets when I installed the latest wxPython.

Is this on Mac? AGWs seem to display correctly on Windows and Linux, and later OS X versions.

The Mac I tested was a friends running 10.7 with wxPython 3.0.2. I have Ubuntu 14.04 on my laptop and had some minor issues before but with a previous version. I am currently working on updating to wxPython 3.0.2 to test.

···

On Friday, April 3, 2015 at 3:04:14 PM UTC-4, tsmorton wrote:

I believe part of the issue with the labelbook and flatnotebook is that, unless I am mistaken, the code for them has not been updated to match the changes in wxPython itself. I ran into some issues with other AGW widgets when I installed the latest wxPython.

Is this on Mac? AGWs seem to display correctly on Windows and Linux, and later OS X versions.