code: def select_option_dialog(windowTitle, optionList):
      
  
      class OptionFrame(wx.Frame):
          selectedOption = None
  
          def __init__(self, windowTitle, optionList):
              wx.Frame.__init__(self, None, -1, windowTitle, size=(250, 200))
              panel = wx.Panel(self, -1)
              listBox = wx.ListBox(panel, -1, (20, 20), (80, 120), optionList, wx.LB_SINGLE)
              listBox.SetSelection(0)
              self.Bind(wx.EVT_LISTBOX_DCLICK, self.doubleclick)
              self.optionList = optionList
  
          def doubleclick(self, event):
              index = event.GetSelection()
              value = self.optionList[index]
              OptionFrame.selectedOption = (index, value)
              self.Close()
  
      app = wx.PySimpleApp()
      OptionFrame(windowTitle, optionList).Show()
      app.MainLoop()
  
      return OptionFrame.selectedOption
docs: Opens a select option dialog.
      Select the option by double clicking.
      TODO: Clean up this function
      TODO: Improve interface (i.e., add cancel, OK)