Marriage of a TreeCtrl and a Grid

Hi Tim,

That looks absolutely like what I need. I downloaded the code, but can't get
it to run.

(tjg@bastard%) python HyperTreeListDemo.py
Traceback (most recent call last):
  File "HyperTreeListDemo.py", line 9, in <module>
    import HyperTreeList as HTL
  File
"/Users/tjg/www_download/HyperTreeList/HyperTreeList.py",
line 149, in <module>
    from wx.lib.customtreectrl import GetFlaggedBitmap, GetNotFlaggedBitmap,
GetCheckedBitmap, GetNotCheckedBitmap
ImportError: cannot import name GetFlaggedBitmap

I'm guessing those are parts of a library that either got moved or renamed,
but a quick google of GetFlaggedBitmap shows these functions used to be part
of CustomTreeCtrl which appears to have been another of Andrea's projects.

I'll see if I can't fix HyperTreeList with the code I found online.

This error comes from the fact that HyperTreeList is based on
CustomTreeCtrl, which (before 2.8.7) had GetFlaggedBitmap,
GetCheckedBitmap and others as methods to retrieve the checked/flagged
bitmaps. Now, in 2.8, they are called Flagged, Checked and so on, as
CustomTreeCtrl now lives in wx.lib.customtreectrl. So, simply renaming
those constants with the same names in wx.lib.customtreectrl should
fix your problems with HyperTreeList.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 7/10/08, Timothy Grant wrote:

Thank you very much Andrea!

It works perfectly.

···

On Thu, Jul 10, 2008 at 9:25 AM, Andrea Gavana andrea.gavana@gmail.com wrote:

Hi Tim,

On 7/10/08, Timothy Grant wrote:

That looks absolutely like what I need. I downloaded the code, but can’t get

it to run.

(tjg@bastard%) python HyperTreeListDemo.py

Traceback (most recent call last):

File “HyperTreeListDemo.py”, line 9, in

import HyperTreeList as HTL

File

“/Users/tjg/www_download/HyperTreeList/HyperTreeList.py”,

line 149, in

from wx.lib.customtreectrl import GetFlaggedBitmap, GetNotFlaggedBitmap,

GetCheckedBitmap, GetNotCheckedBitmap

ImportError: cannot import name GetFlaggedBitmap

I’m guessing those are parts of a library that either got moved or renamed,

but a quick google of GetFlaggedBitmap shows these functions used to be part

of CustomTreeCtrl which appears to have been another of Andrea’s projects.

I’ll see if I can’t fix HyperTreeList with the code I found online.

This error comes from the fact that HyperTreeList is based on

CustomTreeCtrl, which (before 2.8.7) had GetFlaggedBitmap,

GetCheckedBitmap and others as methods to retrieve the checked/flagged

bitmaps. Now, in 2.8, they are called Flagged, Checked and so on, as

CustomTreeCtrl now lives in wx.lib.customtreectrl. So, simply renaming

those constants with the same names in wx.lib.customtreectrl should

fix your problems with HyperTreeList.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


Stand Fast,
tjg.

Timothy Grant