wx.Choice for 2-columns?

In environmental and ecological applications some data will be missing. We
use a code scheme originally developed by a regulator to explain why
measurements are missing. The list has 27 rows with two columns: a single
letter code [A-Z, $] and an explanation of what that code means. I want to
make this 2-column list available to users so they can enter the appropriate
code when data are missing.

   My research (primarily in 'wxPython in Action') suggests that a wx.Choice
type of ListControl would be the most appropriate widget for this purpose.
What I've not seen is how to make the list of choices with two columns: a
narrow one for the symbol and a multi-line one for the description.

   I'd like the benefits of your expertise in how best to implement this
widget. Or, what widget type would be more suited to this purpose.

TIA,

Rich

Actually, I think the ComboCtrl or the OwnerDrawnComboBox would be better. There are examples of both in the wxPython demo.

···

Mike Driscoll

Blog: http://blog.pythonlibrary.org

Mike,

   Thank you. I'll look at them.

Rich

···

On Fri, 9 Dec 2011, Mike Driscoll wrote:

Actually, I think the ComboCtrl or the OwnerDrawnComboBox would be better.
There are examples of both in the wxPython demo.

On the Web site's download page I see demo packages for Microsoft and
Apple, but not linux. Where can I find the demos for the last OS?

Thanks,

Rich

···

On Fri, 9 Dec 2011, Mike Driscoll wrote:

Actually, I think the ComboCtrl or the OwnerDrawnComboBox would be better.
There are examples of both in the wxPython demo.

At the very bottom of the page, "wxPython-demo The source code for the wxPython demo and other sample applications."

···

On 12/9/11 2:38 PM, Rich Shepard wrote:

On Fri, 9 Dec 2011, Mike Driscoll wrote:

Actually, I think the ComboCtrl or the OwnerDrawnComboBox would be
better.
There are examples of both in the wxPython demo.

On the Web site's download page I see demo packages for Microsoft and
Apple, but not linux. Where can I find the demos for the last OS?

--
Robin Dunn
Software Craftsman

Or, if you're using a 2.8.x release then there is a similar link in the middle of the download page.

···

On 12/9/11 2:43 PM, Robin Dunn wrote:

On 12/9/11 2:38 PM, Rich Shepard wrote:

On Fri, 9 Dec 2011, Mike Driscoll wrote:

Actually, I think the ComboCtrl or the OwnerDrawnComboBox would be
better.
There are examples of both in the wxPython demo.

On the Web site's download page I see demo packages for Microsoft and
Apple, but not linux. Where can I find the demos for the last OS?

At the very bottom of the page, "wxPython-demo The source code for the
wxPython demo and other sample applications."

--
Robin Dunn
Software Craftsman

Thanks, Robin. I saw the two lines above that and must have stopped
reading.

Rich

···

On Fri, 9 Dec 2011, Robin Dunn wrote:

At the very bottom of the page, "wxPython-demo The source code for
the wxPython demo and other sample applications."

Yep. 2.8.12.1 from the stable branch.

Carpe weekend,

Rich

···

On Fri, 9 Dec 2011, Robin Dunn wrote:

Or, if you're using a 2.8.x release then there is a similar link in the
middle of the download page.

Mike,

   Looking at the above, ComboBox, and ListCtrl, I believe the ListCtrl will
work best. The entries are read only and the user can select one of them
while seeing both the symbol and the meaning.

Thanks,

Rich

···

On Fri, 9 Dec 2011, Mike Driscoll wrote:

Actually, I think the ComboCtrl or the OwnerDrawnComboBox would be better.
There are examples of both in the wxPython demo.