2.7.1.1 on Mac OS X

Hi,

I have upgraded wxPython on my mac and got few issues with my app.

  1. I keep getting “CGContextConcatCTM: invalid context”, what does it mean?

  2. sometimes I get “Python[27832] Unknown class NSTypographyPanelSlider in Interface Builder file.”, don’t know what causing it.

  3. The About menu item is gone. I have set the ID to wx.ID_ABOUT. on 2.6.3.3 it caused the ABOUT to appear under the “Python” menu, not it’s gone.

  4. This happens on win32 as well. ‘StaticBox’ object has no attribute ‘SetTitle’. What is the method for changing the StaticBox’s title?

  5. not sure if wx.ListCtrl->wx.EVT_LEFT_DCLICK works.

  6. Changing the font of a ListCtrl doesn’t work anymore. using:

self.SetFont(font)

self.Refresh()

  1. wx.lib.masked.NumCtrl has a big white border around it.

  2. big spaces at several places for no reason, threre are more issues but I think that’s enough for one day, I must go but I will try to give more specific details in a day or two.

Yours,

Roee88.

roee88 shlomo wrote:

Hi,
I have upgraded wxPython on my mac and got few issues with my app.
1. I keep getting "CGContextConcatCTM: invalid context", what does it mean?

It may be just because of the transition that the DC classes are going through right now on wxMac. I've seen them too, but have verified that the drawing is correctly done despite the error messages. I think it will be fixed in the next build, at least for many of the situations that could generate these messages now.

2. sometimes I get "Python[27832] Unknown class NSTypographyPanelSlider in Interface Builder file.", don't know what causing it.

This is a bug in Apple's font panel implementation. It can safely be ignored.

3. The About menu item is gone. I have set the ID to wx.ID_ABOUT. on 2.6.3.3 it caused the ABOUT to appear under the "Python" menu, not it's gone.

I'll ask Stefan about this.

4. This happens on win32 as well. 'StaticBox' object has no attribute 'SetTitle'. What is the method for changing the StaticBox's title?

SetLabel

5. not sure if wx.ListCtrl->wx.EVT_LEFT_DCLICK works.
6. Changing the font of a ListCtrl doesn't work anymore. using:

        self.SetFont(font)
        self.Refresh()

wxMac is in the process of getting a native implementation for the wxListCtrl. Currently it is able to use either the native version or the generic version that it has always been able to do, but the way it is done causes a few problems like this. When the generic version is used (which is what it defaults to currently for wxPython) then the wx.ListCtrl acts as a facade/delgate to the real generic list ctrl object, but not all of the methods are forwarded to it that probably should be. I'll add SetFont and also SetForegroundColour and SetBackgroundColour.

It also means that the low-level events sent to that window are not able to be caught, but there should be a EVT_LIST_ITEM_ACTIVATED event for the double click, so you can use that instead in this case.

To try out the new native listctrl you can add the following code to your app's initialization:

     wx.SystemOptions.SetOptionInt("mac.listctrl.always_use_generic", 0)

This will probably become the default sometime before 2.8.

7. wx.lib.masked.NumCtrl has a big white border around it.

Around the outside of the textctrl or empty space between the text and the edge of the control? (I see the latter, and it may just be due to how the masked controls are choosing a font to use...)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

roee88 shlomo wrote:

7. wx.lib.masked.NumCtrl has a big white border around it.

Around the outside of the textctrl or empty space between the text and the edge of the control? (I see the latter, and it may just be due to how the masked controls are choosing a font to use...)

I went back to the version of the code included in the 2.7.1.1 build and I see the white space around the textctrl now. So it is something that has been fixed in the last couple days.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!