controls/LocationCellEditor.py
changeset 723 5df934c273e1
parent 714 131ea7f237b9
equal deleted inserted replaced
722:8c098eb05498 723:5df934c273e1
    38         main_sizer = wx.FlexGridSizer(cols=2, hgap=0, rows=1, vgap=0)
    38         main_sizer = wx.FlexGridSizer(cols=2, hgap=0, rows=1, vgap=0)
    39         main_sizer.AddGrowableCol(0)
    39         main_sizer.AddGrowableCol(0)
    40         main_sizer.AddGrowableRow(0)
    40         main_sizer.AddGrowableRow(0)
    41         
    41         
    42         # create location text control
    42         # create location text control
    43         self.Location = wx.TextCtrl(self, style=wx.TE_PROCESS_ENTER)
    43         self.Location = wx.TextCtrl(self, size=wx.Size(0, -1), 
       
    44               style=wx.TE_PROCESS_ENTER)
    44         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
    45         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
    45         main_sizer.AddWindow(self.Location, flag=wx.GROW)
    46         main_sizer.AddWindow(self.Location, flag=wx.GROW)
    46         
    47         
    47         # create browse button
    48         # create browse button
    48         self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, 0))
    49         self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, -1))
    49         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
    50         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
    50         main_sizer.AddWindow(self.BrowseButton, flag=wx.GROW)
    51         main_sizer.AddWindow(self.BrowseButton, flag=wx.GROW)
    51         
    52         
    52         self.Bind(wx.EVT_SIZE, self.OnSize)
    53         self.Bind(wx.EVT_SIZE, self.OnSize)
    53         
    54