import wx import wx.lib.dialogs #--------------------------------------------------------------------------- def runTest(frame, nb, log): lst = [ 'apple', 'pear', 'banana', 'coconut', 'orange', 'etc', 'etc..', 'etc...' ] dlg = wx.lib.dialogs.MultipleChoiceDialog( frame, "Pick some from\n this list\nblah blah...", "m.s.d.", lst) if (dlg.ShowModal() == wx.ID_OK): print "Selection:", dlg.GetValue(), " -> ", dlg.GetValueString() #--------------------------------------------------------------------------- overview = """\
This is a Python implementation of a dialog that is not yet implemented in wxWindows proper, so don't let the wxWindows documentation mislead you.MultipleChoiceDialog(self, parent, msg, title, lst,
pos = wx.wxDefaultPosition, size = (200,200), style = wx.DEFAULT_DIALOG_STYLE)
parent
msg
title
lst
pos
size
style
Methods
GetValue
GetValueString