]> git.saurik.com Git - wxWidgets.git/commitdiff
Bug fix from Mike Fletcher
authorRobin Dunn <robin@alldunn.com>
Mon, 30 Apr 2001 18:37:06 +0000 (18:37 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 30 Apr 2001 18:37:06 +0000 (18:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/filebrowsebutton.py

index 395655700c3e345b0f1a19cc873f4b6361e19d6c..5bf576cd917ee1438bbc2564e126ba8aea43c738 100644 (file)
@@ -13,7 +13,7 @@
 #----------------------------------------------------------------------
 
 from wxPython.wx import *
-import os
+import os, types
 
 #----------------------------------------------------------------------
 
@@ -109,6 +109,8 @@ class FileBrowseButton(wxPanel):
         self.SetAutoLayout(true)
         self.SetSizer( outsidebox )
         self.Layout()
+        if type( size ) == types.TupleType:
+            size = apply( wxSize, size)
         if size.width != -1 or size.height != -1:
             self.SetSize(size)