boon

unix terminal framework
git clone https://git.ce9e.org/boon.git

commit
0bc7e236626394e682549815b26d7f1d483b3749
parent
a3ab4ecc5eaff63a31fbacdd86dd7fab8e77df60
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-07-11 15:55
rm example

Diffstat

M boon.py 23 -----------------------

1 files changed, 0 insertions, 23 deletions


diff --git a/boon.py b/boon.py

@@ -138,26 +138,3 @@ class App:
  138   138 
  139   139 	def on_key(self, key):
  140   140 		pass
  141    -1 
  142    -1 
  143    -1 class Example(App):
  144    -1 	def __init__(self):
  145    -1 		super().__init__()
  146    -1 		self.keys = ['f', 'b', 'z']
  147    -1 
  148    -1 	def on_key(self, key):
  149    -1 		if key == 'q':
  150    -1 			sys.exit(0)
  151    -1 		elif key == KEY_BACKSPACE:
  152    -1 			self.keys.pop()
  153    -1 		elif key in 'abcdefghijklmnopqrstuvwxyz':
  154    -1 			self.keys.append(key)
  155    -1 
  156    -1 	def render(self):
  157    -1 		for key in self.keys:
  158    -1 			yield str(key) + 'test'
  159    -1 
  160    -1 
  161    -1 if __name__ == '__main__':
  162    -1 	example = Example()
  163    -1 	example.run()