- self.location = wxComboBox(self, wxNewId(), "", style=wxCB_DROPDOWN)
- EVT_COMBOBOX(self, self.location.GetId(), self.OnLocationSelect)
- EVT_KEY_UP(self.location, self.OnLocationKey)
- EVT_CHAR(self.location, self.IgnoreReturn)
- btnSizer.Add(self.location, 1, wxEXPAND|wxALL, 2)
+ 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)