It is currently Mon May 21, 2012 7:40 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Creating Interface for Tree Object's Nodes.
PostPosted: Wed Aug 17, 2011 6:17 am 
Offline

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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


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

Search for:

Protected by Anti-Spam ACP