demos/demo_buffer.py
changeset 83 ebe732b9ef19
parent 82 2bead23b1262
child 84 04dfb5ddf031
--- a/demos/demo_buffer.py	Fri Mar 14 18:23:23 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-sys.path.append('..')
-
-from tuikit.core.buffer import Buffer
-
-
-buf = Buffer(16, 8)
-buf.fill(c='#')
-buf.hline(1, 1, 14, c='-')
-buf.hline(1, 6, 14, c='-')
-buf.vline(7, 2, 4, c='|')
-buf.puts(8, 4, 'Hello!')
-buf.frame()
-
-for y in range(buf.size.h):
-    for x in range(buf.size.w):
-        print(buf.get(x, y)[0], end='')
-    print()