From c7426f4ca3ca80554c6360f7385741e971a96af3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 29 Apr 2005 18:55:28 +0000 Subject: [PATCH] No need to match bg colours any more git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/filebrowsebutton.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/wxPython/wx/lib/filebrowsebutton.py b/wxPython/wx/lib/filebrowsebutton.py index 0a492fd7fc..c731be2b6e 100644 --- a/wxPython/wx/lib/filebrowsebutton.py +++ b/wxPython/wx/lib/filebrowsebutton.py @@ -68,12 +68,6 @@ class FileBrowseButton(wx.Panel): self.callCallback = True - # get background to match it - try: - self._bc = parent.GetBackgroundColour() - except: - pass - # create the dialog self.createDialog(parent, id, pos, size, style ) # Setting a value causes the changeCallback to be called. @@ -88,15 +82,6 @@ class FileBrowseButton(wx.Panel): wx.Panel.__init__ (self, parent, id, pos, size, style) self.SetMinSize(size) # play nice with sizers - # try to set the background colour - try: - #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 - box = wx.BoxSizer(wx.HORIZONTAL) self.label = self.createLabel( ) -- 2.50.0