Rearrange

This commit is contained in:
Tyrel Souza 2018-08-28 22:08:47 -04:00
parent 27da48007e
commit e1d528d114
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

View File

@ -75,8 +75,8 @@ def get_goodreads_stats():
def get_stats(pages, books): def get_stats(pages, books):
size = 3 size = 3
col_w, col_h = 40, 32 col_w, col_h = 50, 32
x_start, y_start = 53, 10 x_start, y_start = 60, 14
row_offsets = [0,5,0] row_offsets = [0,5,0]
rows = ["year", "books", "pages"] rows = ["year", "books", "pages"]
@ -105,6 +105,8 @@ def draw(stats):
inkyphat.set_border(inkyphat.WHITE) inkyphat.set_border(inkyphat.WHITE)
inkyphat.set_image("./background.png") inkyphat.set_image("./background.png")
inkyphat.show()
draw_row('year', stats, 12) draw_row('year', stats, 12)
draw_row('books', stats, 18) draw_row('books', stats, 18)
draw_row('pages', stats, 12) draw_row('pages', stats, 12)