changeset 62 | 2f61931520c9 |
parent 55 | 1ab0edd5d784 |
child 73 | 85a282b5e4fc |
--- a/demo_input.py Thu Jan 10 00:03:34 2013 +0100 +++ b/demo_input.py Fri Jan 18 22:36:50 2013 +0100 @@ -12,9 +12,8 @@ Application.__init__(self) self.text = '' - self.textedit = TextEdit(100, 40, self.text) - self.top.add(self.textedit) - self.textedit.x = 2 + self.textedit = TextEdit(self.text) + self.top.add(self.textedit, halign='fill', valign='fill') editbox = self.textedit.editbox editbox.add_handler('keypress', self.on_any_input)