click '1'
click '+'
click '1'
click 'enter'
and complex strings such as
entryEval 'Entry'.split()[0] == '1'
Are both parse-able AND should work the way that they're expected. Pretty cool. Source is on SVN. [edit] I have also quickly implemented a feature that will allow the serialization of sbCommand objects -- so that not only can lines like the above be parsed, they can be un-parsed.
Note: In order for Entry hooking to work properly, the gtk.Entry has to [edit] be named properly. For testing purposes, I named Calculate.activity's main entry "Entry". I will include a patch to automate this process at a later point in time. [edit] Manual patch below, will upload a Diff to the sugarbot downloads area.
Underneath the line in Calculate.activity/layout.py:
self.text_entry = gtk.Entry()
Enter the following (my personal tests use:
self.text_entry.set_name('calcMainEntry')
No comments:
Post a Comment