Rearrange
This commit is contained in:
parent
27da48007e
commit
e1d528d114
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user