demos/01_buffer.py
changeset 83 ebe732b9ef19
parent 81 5cd40c30c4f2
child 92 b97c4e25ed6d
equal deleted inserted replaced
82:2bead23b1262 83:ebe732b9ef19
       
     1 #!/usr/bin/env python3
       
     2 
       
     3 import sys
       
     4 sys.path.append('..')
       
     5 
       
     6 from tuikit.core.buffer import Buffer
       
     7 from tuikit.driver.driver import Driver
       
     8 
       
     9 
       
    10 buffer = Buffer(16, 8)
       
    11 buffer.fill(c='#')
       
    12 buffer.hline(1, 1, 14, c='-')
       
    13 buffer.hline(1, 6, 14, c='-')
       
    14 buffer.vline(7, 2, 4, c='|')
       
    15 buffer.puts(8, 4, 'Hello!')
       
    16 buffer.frame()
       
    17 
       
    18 driver = Driver()
       
    19 driver.init()
       
    20 driver.draw(buffer)
       
    21 driver.close()
       
    22