Fix bug browse button in special cell editors on Windows
authorLaurent Bessard
Fri, 13 Jul 2012 12:27:05 +0200
changeset 723 5df934c273e1
parent 722 8c098eb05498
child 724 57b6446d54f8
Fix bug browse button in special cell editors on Windows
controls/DurationCellEditor.py
controls/LocationCellEditor.py
--- a/controls/DurationCellEditor.py	Sun Jul 08 17:48:38 2012 +0200
+++ b/controls/DurationCellEditor.py	Fri Jul 13 12:27:05 2012 +0200
@@ -40,12 +40,13 @@
         main_sizer.AddGrowableRow(0)
         
         # create location text control
-        self.Duration = wx.TextCtrl(self, style=wx.TE_PROCESS_ENTER)
+        self.Duration = wx.TextCtrl(self, size=wx.Size(0, -1), 
+              style=wx.TE_PROCESS_ENTER)
         self.Duration.Bind(wx.EVT_KEY_DOWN, self.OnDurationChar)
         main_sizer.AddWindow(self.Duration, flag=wx.GROW)
         
         # create browse button
-        self.EditButton = wx.Button(self, label='...', size=wx.Size(30, 0))
+        self.EditButton = wx.Button(self, label='...', size=wx.Size(30, -1))
         self.Bind(wx.EVT_BUTTON, self.OnEditButtonClick, self.EditButton)
         main_sizer.AddWindow(self.EditButton, flag=wx.GROW)
         
--- a/controls/LocationCellEditor.py	Sun Jul 08 17:48:38 2012 +0200
+++ b/controls/LocationCellEditor.py	Fri Jul 13 12:27:05 2012 +0200
@@ -40,12 +40,13 @@
         main_sizer.AddGrowableRow(0)
         
         # create location text control
-        self.Location = wx.TextCtrl(self, style=wx.TE_PROCESS_ENTER)
+        self.Location = wx.TextCtrl(self, size=wx.Size(0, -1), 
+              style=wx.TE_PROCESS_ENTER)
         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
         main_sizer.AddWindow(self.Location, flag=wx.GROW)
         
         # create browse button
-        self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, 0))
+        self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, -1))
         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
         main_sizer.AddWindow(self.BrowseButton, flag=wx.GROW)