change solution font size
This commit is contained in:
parent
213c1a556d
commit
becb7a28bd
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
BIN
application/sudoku_8.png
Normal file
BIN
application/sudoku_8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
@ -149,7 +149,7 @@ if __name__ == '__main__':
|
||||
for y in su_sol:
|
||||
print(y)
|
||||
convert_to_image(su)
|
||||
convert_to_image(su_sol, size=4, flipped=True)
|
||||
convert_to_image(su_sol, size=8, flipped=True)
|
||||
# print(su)
|
||||
# for x in generate_sudoku():
|
||||
# print(x)
|
||||
|
@ -132,10 +132,9 @@ class ThermalPrinter():
|
||||
# convert_to_image(generate_sudoku())
|
||||
sudokus = generate_sudoku()
|
||||
convert_to_image(sudokus[0], size=16, flipped=False)
|
||||
convert_to_image(sudokus[1], size=4, flipped=True)
|
||||
convert_to_image(sudokus[1], size=8, flipped=True)
|
||||
self.p.set(align="right")
|
||||
self.p.image("sudoku_4.png")
|
||||
self.p.text("\n")
|
||||
self.p.image("sudoku_8.png")
|
||||
self.p.set(align="center")
|
||||
self.p.image("sudoku_16.png")
|
||||
# self.p.close()
|
||||
|
Loading…
Reference in New Issue
Block a user