X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/acb0429704692845d28c420f01d678e7f69e59b8..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/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