Here's the code which works fine on PC
def __init__(self, parent, id):
wx.Frame.__init__(self, parent,-1,
"VueToolbar",(-1,-1),(130,tFrameHeight+tYIncrement),wx.FRAME_TOOL_WINDOW|wx.STAY_ON_TOP|wx.CAPTION|wx.CLOSE_BOX|wx.SYSTEM_MENU)
gBackgroundColor = wx.Colour(64,64,64)
self.SetBackgroundColour(gBackgroundColor)
Any reason it doesn't work on Mac? Thanks anyone for help on this.
best, Chipp
Hi Chipp,
Here's the code which works fine on PC
def __init__(self, parent, id):
wx.Frame.__init__(self, parent,-1,
"VueToolbar",(-1,-1),(130,tFrameHeight+tYIncrement),wx.FRAME_TOOL_WINDOW|wx.STAY_ON_TOP|wx.CAPTION|wx.CLOSE_BOX|wx.SYSTEM_MENU)
gBackgroundColor = wx.Colour(64,64,64)
self.SetBackgroundColour(gBackgroundColor)
Any reason it doesn't work on Mac? Thanks anyone for help on this.
That's because wx.Frame doesn't support this on Mac (because the underlying native control doesn't). But what you can do is create a wx.Panel to the Frame, call SetBackgroundColour on that panel, then add the frame's children to the panel instead. This should give you the same results and work cross-platform.
Regards,
Kevin
···
On Apr 20, 2007, at 7:35 PM, Chipp Walters wrote:
best, Chipp
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Kevin,
Thanks a bunch. Will try.
best,
Chipp