kivy/kivy — pull request #812 by akshayaurora (2012-11-21 10:31:44+00:00)
Title: Lang: set id name as attribute of root widget

I was hoping to get a discussion started about this. There have been a few requests asking for easy access of id's in .python code. The way I'm implementing this may not be desirable due to it's hackish nature. However I'd like to get your opinion on the right approach for this.

This code; for a id: my_id creates a attribute my_id in root widget that can be accessed in python like
root_widget.my_id

I used the following code to test

```
from kivy.app import App
from kivy.lang import Builder

root=Builder.load_string('''
TabbedPanel:
TabbedPanelItem:
id: tpitem
Button:
id: my_button
on_release: print root.my_button, root.tpitem
''')

class MainApp(App):

def build(self):
return root

if __name__ == '__main__':
MainApp().run()

```