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
This commit is contained in:
Robin Dunn 2005-04-29 18:55:28 +00:00
parent 67308c2167
commit c7426f4ca3

View 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( )