]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed problem with incorrect panel background on OS X.
authorKevin Ollivier <kevino@theolliviers.com>
Sun, 30 Jan 2005 21:30:38 +0000 (21:30 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sun, 30 Jan 2005 21:30:38 +0000 (21:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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