old_contents: '''
  Author:        Aaron Gruneklee, Michael Asquith
  Created:       2014.12.16
  Last Modified: 2014.12.16
  
  tree of code blocks to be displayed and manipulated through user interaction.
  
  this forms the display of the user code
  
  ***  still need to implement drag and drop and display of draggable code blocks  ***   
  
  '''
  
  from kivy.app import App
  from kivy.uix.treeview import TreeView, TreeViewNode
  from kivy.uix.gridlayout import GridLayout
  
  
  class userCodeDisplay(GridLayout):
  
  	def __init__(self):
  		super(userCodeDisplay, self).__init__()
  
  	
  
  	def on_textinput(self):
  		pass
  
  	def on_touch_up(self, touch, *args):
  		if self.collide_point(*touch.pos):
  			if touch.grab_current != None:
  				try:
  					for iblock in touch.grab_current.code_Blocks
  						self.add_widget(iblock)
  				else:
  					pass
  	def on_touch_down(self, touch, *args):
  		pass	
  
  
  
  
  
  class testUserCodeDisplay(App):
  
  	def test_tree_display(s):
  		tree_code = '(/ (+, 3, y), 9) '
          display_tree(tree_code)
  
      def build(self):
      	return userCodeDisplay()
  
  
  if__name__ == '__main__':
  	testUserCodeDisplay().run()
new_contents: '''
  Author:        Aaron Gruneklee, Michael Asquith
  Created:       2014.12.16
  Last Modified: 2014.12.16
  
  tree of code blocks to be displayed and manipulated through user interaction.
  
  this forms the display of the user code
  
  ***  still need to implement drag and drop and display of draggable code blocks  ***   
  
  '''
  
  from kivy.app import App
  from kivy.uix.treeview import TreeView, TreeViewNode
  from kivy.uix.gridlayout import GridLayout
  
  
  
  class UserCodeDisplay(GridLayout):
  
  	def __init__(self, userProgram):
  		super(UserCodeDisplay, self).__init__()
  		program = userProgram.replace('(', '( ').replace(')', ' )').split()		
  		for 
  
  	def on_textinput(self):
  		self = PrimaryBlock(self.text)
  		pass
  
  	def on_touch_up(self, touch, *args):
  		if self.collide_point(*touch.pos):
  			pass
  		pass
  	def on_touch_down(self, touch, *args):
  		pass	
  
  
  
  
  
  class testUserCodeDisplay(App):
  
  	
  
  	def build(self):
  		return UserCodeDisplay()
  
  
  if __name__ == '__main__':
  	testUserCodeDisplay().run()
subject: update to functions