Hi all,
I just wanted to say that ObjectListView
(https://pypi.python.org/pypi/ObjectListView) is a really great tool.
Not only does it let me remove a good amount of extra code, it lets me
know my columns will at least be visible. I kept being told that some
or all of my columns were too small, and I needed to make them wider.
How wide, though, I didn't know, and setting them to auto-size
themselves somehow just made them even smaller.
ObjectListView, though, lets me set "isSpaceFilling" to True and that
makes things as wide as they can be. I still have to mess with the
proportions in some cases, but it's much better than using straight
wx.ListCtrl. I was even able to remove a signal section from my code,
because I don't need it anymore thanks to OLV's ability to refresh
data about the objects it owns. The whole conversion was very easy
once I got the basics down, and I'm not exaggerating when I say that
within an hour (not counting the initial reading of the docs), and
just three test runs of my app, I had my ListCtrl objects converted
and operating as expected.
I haven't yet played with editing, but it looks like I can hook into
that mechanism to easily create dialogs for each cell type. Someone on
this list said that in-place cell editing isn't accessible to screen
readers, but using OLV's system, I think I can make the next best
thing. I'm excited to try this out!
I'm not involved in this project or anything. I've just found it to be
a simple, very useful tool that was surprisingly easy to drop into my
project, and wanted to recommend it. I also wanted to offer thanks to
its creator(s), if any of them happen to see this, and to the person
on this list who suggested I use OLV in the first place. I don't know
about everyone else, but if you're a screen reader user trying to work
out column widths or unable to test column resizing, just use this
package instead. It'll make your life easier in terms of columns, but
also (and this is for anyone, screen reader user or not) in terms of
overall coding.