1 Jan 04:00
Re: upgrading Traits etc.
Looks like the latest version of Traits doesn't like a TreeEditor being
used on an object that hasn't been defined yet,
i.e. I have a "project" object which has its hierarchy of child objects
that I want to show in the tree, each with its own view
definition for the RHS panel. But if 'project' is null then no view
window is displayed. If it is defined then things seem to work
ok although I still have a problem with an ArrayViewEditor error about
not having a border_size attribute.
I'm also still getting the deprecation
warning...
C:\Python25\lib\site-packages\traitsbackendwx-3.0.4.dev_r22772-py2.5.egg\enthought\traits\ui\wx\editor_factory.py:54:
DeprecationWarning: DEPRECATED: Use
enthought.traits.ui.editory_factor..EditorFactory instead.
I've attached a little testtree.py which is modified from someone else's
earlier posting about using tree editors.
If I make the
# proj=Project('myproject',session)
line down the bottom active then the view window appears, if it is
commented out (and therefore proj is null) then there
is no window. Hopefully this may help.
Brennan
Brennan Williams wrote:
> Vibha Srinivasan wrote:
(Continue reading)
RSS Feed