Commit 419c8ddf authored by Fjen Undso's avatar Fjen Undso
Browse files

nchl: add title

parent 434ac954
......@@ -31,6 +31,8 @@ def main(stdscr):
logger.addHandler(CursesHandler(stdscr))
logger.setLevel(logging.INFO)
stdscr.addstr(0, 2, "nchl - ncurses HoneyLight control", curses.A_BOLD)
numbers_text = [
('R', curses.COLOR_RED),
('G', curses.COLOR_GREEN),
......@@ -40,7 +42,7 @@ def main(stdscr):
progress_bars = [
ProgressBar(
window=stdscr,
row=0,
row=1,
col=4 + i * 8,
width=5,
height=12,
......@@ -52,7 +54,7 @@ def main(stdscr):
NumberRange(
window=stdscr,
col=4+ i * 8,
row=12,
row=13,
value=255,
prev_key='KEY_DOWN',
next_key='KEY_UP') for i in range(len(numbers_text))]
......@@ -68,7 +70,7 @@ def main(stdscr):
CheckBox(
window=stdscr,
col=i // 2 * 10,
row=14,
row=15,
toggle_key=' ',
toggle_key_unfocused=str(i),
text='ESP' + str(i)) for i in [1, 3, 5, 7]]
......@@ -76,7 +78,7 @@ def main(stdscr):
CheckBox(
window=stdscr,
col=(i - 1) // 2 * 10,
row=15,
row=16,
toggle_key=' ',
toggle_key_unfocused=str(i),
text='ESP' + str(i)) for i in [2, 4, 6, 8]]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment