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