]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't bind events to the return value of SetDefault, D'oh!
authorRobin Dunn <robin@alldunn.com>
Mon, 15 Mar 2004 23:09:55 +0000 (23:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 15 Mar 2004 23:09:55 +0000 (23:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/imagebrowser.py

index 36938131bd5600fe62cb653be3c2af28ff377192..da40ffc340aac4f57ab9052a2a72694f7546bccd 100644 (file)
@@ -139,7 +139,7 @@ class ImageDialog(wx.Dialog):
 
         self.y_pos = self.y_pos + self.delta
 
-        btn = wx.Button(self, -1, ' Set Directory ', (self.x_pos, self.y_pos), size).SetDefault()
+        btn = wx.Button(self, 12331, ' Set Directory ', (self.x_pos, self.y_pos), size)
         self.Bind(wx.EVT_BUTTON, self.SetDirect, btn)
 
         self.type_posy = self.y_pos     # save the y position for the image type combo
@@ -194,7 +194,7 @@ class ImageDialog(wx.Dialog):
 
         self.y_pos = self.y_pos + height + 20
 
-        btn = wx.Button(self, -1, ' Select ', (100, self.y_pos), size).SetDefault()
+        btn = wx.Button(self, -1, ' Select ', (100, self.y_pos), size)
         self.Bind(wx.EVT_BUTTON, self.OnOk, btn)
 
         wx.Button(self, wx.ID_CANCEL, 'Cancel', (250, self.y_pos), size)