Fixed problem with incorrect panel background on OS X.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2005-01-30 21:30:38 +00:00
parent 261ba880dd
commit acb7a89ad0

View File

@@ -90,7 +90,10 @@ class FileBrowseButton(wx.Panel):
# try to set the background colour
try:
self.SetBackgroundColour(self._bc)
#Question: is this still needed on other platforms?
#It should have transparent background on Mac
if wx.Platform != "__WXMAC__":
self.SetBackgroundColour(self._bc)
except:
pass