use constants

This commit is contained in:
Pavol Rusnak 2016-03-30 19:31:55 +02:00
parent c41922a654
commit 774d6aaee4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 9 additions and 5 deletions

View File

@ -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: