Please support our Python advertiser: Programming Forums
![]() |
•
•
Join Date: Jan 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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.SetAutoLayout(False)
self.SetBackgroundStyle(wx.BG_STYLE_SYSTEM)
self.SetToolTipString('')
self.mainPanel = wx.Panel(id=wxID_SELECTTASMAINPANEL, name='mainPanel',
parent=self, pos=wx.Point(0, 0), size=wx.Size(734, 446),
style=wx.TAB_TRAVERSAL)
self.mainPanel.SetBackgroundStyle(wx.BG_STYLE_SYSTEM)
...
![]() |
Other Threads in the Python Forum
- Previous Thread: Please help me out Friends !!!!!!
- Next Thread: Event handling?
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode