def clear(self): Entry.delete(self, 0, "end") class PdlTree(Tree):
def set(self, value): Entry.delete(self, 0, "end") Entry.insert(self, 0, "%r" % (value, ))
def get(self): tmp = Entry.get(self) try: exec('value = %s' % tmp) except (NameError, SyntaxError): exec('value = u%s' % repr(tmp)) return value