X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/acb0429704692845d28c420f01d678e7f69e59b8..e63d6c308f22f58259d0f90f59eb7ff218dcd73d:/wxPython/wx/lib/filebrowsebutton.py diff --git a/wxPython/wx/lib/filebrowsebutton.py b/wxPython/wx/lib/filebrowsebutton.py index 2da119cfbc..9d7d29b567 100644 --- a/wxPython/wx/lib/filebrowsebutton.py +++ b/wxPython/wx/lib/filebrowsebutton.py @@ -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