예제 #1
0
	def clear(self): Entry.delete(self, 0, "end")


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