+ self.location = wx.ComboBox(
+ self, wx.NewId(), "", style=wx.CB_DROPDOWN|wx.PROCESS_ENTER
+ )
+
+ wx.EVT_COMBOBOX(self, self.location.GetId(), self.OnLocationSelect)
+ wx.EVT_KEY_UP(self.location, self.OnLocationKey)
+ wx.EVT_CHAR(self.location, self.IgnoreReturn)
+ btnSizer.Add(self.location, 1, wx.EXPAND|wx.ALL, 2)