]> git.saurik.com Git - wxWidgets.git/commitdiff
No need to match bg colours any more
authorRobin Dunn <robin@alldunn.com>
Fri, 29 Apr 2005 18:55:28 +0000 (18:55 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 29 Apr 2005 18:55:28 +0000 (18:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/filebrowsebutton.py

index 0a492fd7fcc21f5161e0cdcc4cd3f574a90e4bc5..c731be2b6eab740ed636350506ed4d4e6805c93d 100644 (file)
@@ -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( )