View unanswered posts | View active topics
|
Page 1 of 1
|
[ 1 post ] |
|
| Author |
Message |
|
Tech Receptives
|
Post subject: Creating Interface for Tree Object's Nodes. Posted: Wed Aug 17, 2011 6:17 am |
|
Joined: Tue Jul 26, 2011 2:00 pm Posts: 3 Location: India
|
|
Arbitrary Tree Data Structure.
class TreeWrapper: # subclass for a tree type def children(self, treenode): assert 0, 'children method must be specialized for tree type' def label(self, treenode): assert 0, 'label method must be specialized for tree type' def value(self, treenode): return '' def onClick(self, treenode): # node label click callback return '' def onInputLine(self, line, viewer): # input line sent callback pass
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 1 post ] |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|