From 774d6aaee43048f655df5524b4b8118f89581f71 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 30 Mar 2016 19:31:55 +0200 Subject: [PATCH] use constants --- src/main.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main.py b/src/main.py index 86cdc096..86a4efff 100644 --- a/src/main.py +++ b/src/main.py @@ -7,18 +7,22 @@ BLACK = 0x0000 WHITE = 0xFFFF BLUEGRAY = rgb2color(0x80, 0x80, 0x80) +MONO = 0 +NORMAL = 1 +BOLD = 2 + d = Display() d.bar(0, 0, 240, 40, BLUEGRAY) d.bar(0, 40, 240, 200, WHITE) -d.text(10, 28, 'Sending', 2, WHITE, BLUEGRAY) +d.text(10, 28, 'Sending', BOLD, WHITE, BLUEGRAY) -d.text(10, 80, '110.126967 BTC', 2, BLACK, WHITE) -d.text(10, 110, 'to this address:', 1, BLACK, WHITE) +d.text(10, 80, '110.126967 BTC', BOLD, BLACK, WHITE) +d.text(10, 110, 'to this address:', NORMAL, BLACK, WHITE) -d.text(10, 140, '1BitkeyP2nDd5oa64x', 0, BLACK, WHITE) -d.text(10, 160, '7AjvBbbwST54W5Zmx2', 0, BLACK, WHITE) +d.text(10, 140, '1BitkeyP2nDd5oa64x', MONO, BLACK, WHITE) +d.text(10, 160, '7AjvBbbwST54W5Zmx2', MONO, BLACK, WHITE) while True: