From acb7a89ad05f804dabf4e371b572e8c2cca29d35 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Sun, 30 Jan 2005 21:30:38 +0000 Subject: [PATCH] Fixed problem with incorrect panel background on OS X. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/filebrowsebutton.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.45.2