I have a wxPython GUI application that contains 13 pairs of StaticText controls that I would like to be able to set labels for problematically.
In terms of regression analysis, each pair of StaticText controls represents an independent variable and its coefficient. These key:value pairs are currently stored in a python dictionary, allowing me to use dictionary comprehension for much of my work.
Right now, I am struggling to display the contents of my python dictionary inside of my GUI. Any thoughts?
I am happy concatenating the key:value pair inside 1 StaticText control label, as I think it would be less messy.
I’m sure there are lots of different ways to do this. I would probably use a ListCtrl or better yet, ObjectListView. But I went ahead and created an example using StaticText controls:
If you want to see what a ListCtrl looks like, go and download the wxPython demo package and look up the ListCtrl demo. For ObjectListView, you can read my tutorial.