]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/filebrowsebutton.py
warning fix
[wxWidgets.git] / wxPython / wx / lib / filebrowsebutton.py
index 2da119cfbc5f006a99c17cac27b83b55ad1b2af7..9d7d29b567a0d9452b6c1b9f6fd273e0a854b5a0 100644 (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