controls/LocationCellEditor.py
branchwxPython4
changeset 3303 0ffb41625592
parent 2579 8fb5c6eddc72
child 3305 ca11385ea5e9
equal deleted inserted replaced
3302:c89fc366bebd 3303:0ffb41625592
    44 
    44 
    45         # create location text control
    45         # create location text control
    46         self.Location = wx.TextCtrl(self, size=wx.Size(0, -1),
    46         self.Location = wx.TextCtrl(self, size=wx.Size(0, -1),
    47                                     style=wx.TE_PROCESS_ENTER)
    47                                     style=wx.TE_PROCESS_ENTER)
    48         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
    48         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
    49         main_sizer.AddWindow(self.Location, flag=wx.GROW)
    49         main_sizer.Add(self.Location, flag=wx.GROW)
    50 
    50 
    51         # create browse button
    51         # create browse button
    52         self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, -1))
    52         self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, -1))
    53         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
    53         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
    54         main_sizer.AddWindow(self.BrowseButton, flag=wx.GROW)
    54         main_sizer.Add(self.BrowseButton, flag=wx.GROW)
    55 
    55 
    56         self.Bind(wx.EVT_SIZE, self.OnSize)
    56         self.Bind(wx.EVT_SIZE, self.OnSize)
    57 
    57 
    58         self.SetSizer(main_sizer)
    58         self.SetSizer(main_sizer)
    59 
    59