I am hoping somebody can help with a very frustrating problem I am facing.

I am working with a MDIChildFrame that has one panel called mainPanel. I set the background style of both the panel and the child frame to wx.BG_STYLE_SYSTEM.

Yet, when I run the program the background is white (and very ugly), rather than the standard aqua grey pattern that is common on the Mac.

If I open the frame in Boa's frame designer, the background is correct. What could I be doing wrong?

class selectTAs(wx.MDIChildFrame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.MDIChildFrame.__init__(self, id=wxID_SELECTTAS, name='selectTAs',
              parent=prnt, pos=wx.Point(292, 150), size=wx.Size(734, 468),
              style=wx.DEFAULT_FRAME_STYLE, title='Select Possible TAs...')
        self.SetClientSize(wx.Size(734, 446))

        self.mainPanel = wx.Panel(id=wxID_SELECTTASMAINPANEL, name='mainPanel',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(734, 446),

Sorry, I am running Windows XP, but could you try a self.mainPanel.Refresh() after self.mainPanel.SetBackgroundStyle(wx.BG_STYLE_SYSTEM)? Just a WAG.