Making wxTreeListCtrl visible from Python

After getting an application running with the SplitTree control, its
shortcomings are now becomming apparent and I am motivated to try and get
wxTreeListCtrl usable from wxPython. I'm am notifying people here just in
case someone has already done some work in this area, or in case someone
wants to offer to help a relative newbie out.

Some caveats

1) It looks as if wxTreeListCtrl is based on older versions of the generic
tree and list controls, although it still seems to work fine when compiled
with wxPython 2.4.0.2. I don't plan to update the code to parallel the
changes made to the tree and list controls (except for the fix that deals
with the small limit on the number of items a tree can have which was
checked in at revision 1.91 of treectlg.cpp)

2) Since I'm only working on windows, I can't really check how things are
going with other ports.

3) In light of 2, and general timidity, I'm not even going to think about
checking any of this in since it's probably not going to be very
comprehensive yet, but maybe someone else could run with it once I have the
windows part done?

As it stands, the code at
http://web.tiscali.it/no-redirect-tiscali/agriggio/wx-stuff.html needs a
little massaging to get it to compile with wxPython 2.4.0.2 under windows. I
can send the details to anyone who'd like them (or perhaps post them to the
dev list?)

Any thoughts or comments appreciated,

S.

Sean Slattery wrote:

After getting an application running with the SplitTree control, its
shortcomings are now becomming apparent and I am motivated to try and get
wxTreeListCtrl usable from wxPython. I'm am notifying people here just in
case someone has already done some work in this area, or in case someone
wants to offer to help a relative newbie out.

I've got some future apps in which I planned to use SplitTree, so I'm curious what shortcomings you found. Could you list them briefly?

David

After getting an application running with the SplitTree control, its
shortcomings are now becomming apparent and I am motivated to try and get
wxTreeListCtrl usable from wxPython. I'm am notifying people here just in
case someone has already done some work in this area, or in case someone
wants to offer to help a relative newbie out.

This is really nice. Unfortunately I can't help you at the moment, but
I'd really like to see it.

Some caveats

1) It looks as if wxTreeListCtrl is based on older versions of the generic
tree and list controls, although it still seems to work fine when compiled
with wxPython 2.4.0.2. I don't plan to update the code to parallel the
changes made to the tree and list controls (except for the fix that deals
with the small limit on the number of items a tree can have which was
checked in at revision 1.91 of treectlg.cpp)

Yes, IIRC I took the 2.3.3 code.

2) Since I'm only working on windows, I can't really check how things are
going with other ports.

There's a compilation error in treelistctrl.cpp: line 1657, i.e.

  for(i = theCtrl->GetMainColumn()+1;

should be:
  for(size_t i = theCtrl->GetMainColumn()+1;

Apart from this, everything compiles fine.

Any thoughts or comments appreciated,

You said you fixed the tree problem with many items, but here (wxGTK
2.4.0), the treetest sample is displayed correctly: I guess this is
because of the reported wxScrolledWindow bug, but I don't know.

Next, it would be nice if you could put the code on the web rather than
posting it to the ml, or at least compress it: it may seem unbelievable,
but there are still people on a 56k line :frowning:

Cheers,
Alberto

Sean Slattery wrote:

3) In light of 2, and general timidity, I'm not even going to think about
checking any of this in since it's probably not going to be very
comprehensive yet, but maybe someone else could run with it once I have the
windows part done?

It's already on my ToDo list, so if you want to get it started and then hand it off to me that would be okay. Are the files you've already posted as far as you want to take it?

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!