Little tweaks and fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-03-08 23:06:21 +00:00
parent ff42dd6650
commit 91a64dfd31
4 changed files with 27 additions and 3 deletions

View File

@@ -111,8 +111,10 @@ class FileBrowseButton(wxPanel):
self.Layout()
if type( size ) == types.TupleType:
size = apply( wxSize, size)
if size.width != -1 or size.height != -1:
self.SetSize(size)
self.SetDimensions(-1, -1, size.width, size.height, wxSIZE_USE_EXISTING)
# if size.width != -1 or size.height != -1:
# self.SetSize(size)
def SetBackgroundColour(self,color):
wxPanel.SetBackgroundColour(self,color)