diff -r 2430c643838a -r fa5301e58eca demo_editor.py --- a/demo_editor.py Fri Feb 01 09:34:15 2013 +0100 +++ b/demo_editor.py Sat Feb 02 12:54:27 2013 +0100 @@ -7,7 +7,8 @@ import os from tuikit.application import Application -from tuikit.textedit import TextEdit +from tuikit.scrollview import ScrollView +from tuikit.editbox import EditBox class MyApplication(Application): @@ -16,8 +17,12 @@ self.top.add_handler('keypress', self.on_top_keypress) t = open('tuikit/widget.py').read() - textedit = TextEdit(t) - self.top.add(textedit, halign='fill', valign='fill') + editbox = EditBox(t) + + scroll = ScrollView() + scroll.add(editbox) + + self.top.add(scroll, halign='fill', valign='fill') def on_top_keypress(self, ev): if ev.keyname == 'escape':