--- a/demo_editor.py Thu Jan 10 00:03:34 2013 +0100
+++ b/demo_editor.py Fri Jan 18 22:36:50 2013 +0100
@@ -7,7 +7,6 @@
import os
from tuikit.application import Application
-from tuikit.editfield import EditField
from tuikit.textedit import TextEdit
@@ -16,14 +15,9 @@
Application.__init__(self)
self.top.add_handler('keypress', self.on_top_keypress)
- #edit = EditField(50, 'DlouhyTest12')
- #self.top.add(edit)
-
t = open('tuikit/widget.py').read()
- textedit = TextEdit(100, 40, t)
- self.top.add(textedit)
- textedit.x = 2
- self.textedit = textedit
+ textedit = TextEdit(t)
+ self.top.add(textedit, halign='fill', valign='fill')
def on_top_keypress(self, ev):
if ev.keyname == 'escape':