diff -r 165b5d65e1cb -r 8680c2333546 demos/04_texteditor.py --- a/demos/04_texteditor.py Sun Feb 15 17:50:24 2015 +0100 +++ b/demos/04_texteditor.py Mon Feb 16 21:17:43 2015 +0100 @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import demobase +import sys from tuikit.core.application import Application #from tuikit.scrollview import ScrollView @@ -14,7 +14,7 @@ self.window_manager.sig_keypress.connect(self.on_wm_keypress) #self.top.add_handler('keypress', self.on_top_keypress) - t = open('../tuikit/core/widget.py').read() + t = open(sys.argv[0]).read() editbox = TextBox(t) #scroll = ScrollView() @@ -28,7 +28,6 @@ self.stop() return True - if __name__ == '__main__': app = MyApplication() app.start()