mirror of
https://github.com/python-escpos/python-escpos
synced 2025-12-02 09:43:30 +00:00
fixed image size
This commit is contained in:
@@ -59,7 +59,7 @@ def forecast(idx):
|
|||||||
printer.text(day + ' \n ')
|
printer.text(day + ' \n ')
|
||||||
time.sleep(5) # Sleep to prevent printer buffer overflow
|
time.sleep(5) # Sleep to prevent printer buffer overflow
|
||||||
printer.text('\n')
|
printer.text('\n')
|
||||||
printer.image(forecast_icon(idx), high_density_vertical=False, high_density_horizontal=False, impl=u'bitImageRaster', fragment_height=960)
|
printer.image(forecast_icon(idx))
|
||||||
printer.text('low ' + str(lo) )
|
printer.text('low ' + str(lo) )
|
||||||
printer.text(deg)
|
printer.text(deg)
|
||||||
printer.text('\n')
|
printer.text('\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user