Paul McNett wrote:
> Ricardo Aráoz wrote:
>   
>> Hi,
>>     been reading the wiki on dTreeView
>> (http://dabodev.com/wiki/DTreeView) and is pretty clear save that I
>> found no code examples (and I usually need them).
>> What I'm trying to do is re-code an app so as to be able to present the
>> main menu as a menu or a dTreeView. The menu is ok, but I couldn't find
>> an onHit() method for dNode. Should I use bindEvent()? And could some
>> charitable soul give an example? Just a couple of nodes bound to a
>> couple of functions.
>> Thanks a lot.
>>
>> Ricardo.
>>
>> P.S.: I couldn't find dNode (I thought it would be under dabo.ui.dNode,
>> but no luck) where is it referenced in the framework?
>>     
>
> Take at look at dabo/dabo/ui/uiwx/dTreeView.py, the sample code at the end. 
> Run it to 
> see the sample code in action.
>
> We've tried to provide get-you-going functional samples at the bottom of all 
> the ui 
> classes. See them all in action by typing:
>
> python test.py from within the uiwx directory.
>
> Paul
>   
Thanks Paul.
Nevertheless when in dShell I do :
----------------------------------------
>>> dabo.ui.dTreeView(w)
>>> dabo.ui.dNode(tv)
----------------------------------------
<dTreeView1 (baseclass dabo.ui.dTreeView, id:-403)>
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'dNode'
----------------------------------------
I get this ("w" is a dDialog and "tv" is a dTreeView).
In dabo/dabo/ui/uiwx/dTreeView.py  you use "class TestNode(dNode):" and
"class _dTreeView_test(dTreeView):" so I would guess I should be able to
call dNode the same way I call dTreeView. Am I doing something wrong?
This is :
Platform: Win
Python Version: 2.5.4 on win32
Dabo Version: Version 0.9.1; Revision ~5116
UI Version: 2.8.9.1 on wxMSW





--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to