Carry the ink choice and the font status into the Dymo page
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vunz4VLxAYDBnU5tLciLDC
This commit is contained in:
1 parent
b42f27514a
commit
4132e1031b
1 file changed
+3
-1
@@ -59,6 +59,7 @@ def _query(sheet, options, labels, group_spec=None):
|
|||||||
'margin_mm': sheet.margin_mm,
|
'margin_mm': sheet.margin_mm,
|
||||||
'gap_mm': sheet.gap_mm,
|
'gap_mm': sheet.gap_mm,
|
||||||
'start_at': sheet.start_at,
|
'start_at': sheet.start_at,
|
||||||
|
'ink': sheet.ink,
|
||||||
'size_mode': options.size_mode,
|
'size_mode': options.size_mode,
|
||||||
'copies': options.copies,
|
'copies': options.copies,
|
||||||
'font_scale': options.font_scale,
|
'font_scale': options.font_scale,
|
||||||
@@ -69,7 +70,6 @@ def _query(sheet, options, labels, group_spec=None):
|
|||||||
}
|
}
|
||||||
for name, on in (('cut_guides', sheet.cut_guides),
|
for name, on in (('cut_guides', sheet.cut_guides),
|
||||||
('centre', sheet.centre),
|
('centre', sheet.centre),
|
||||||
('monochrome', sheet.monochrome),
|
|
||||||
('group_drawers', options.group_drawers),
|
('group_drawers', options.group_drawers),
|
||||||
('outline', options.outline)):
|
('outline', options.outline)):
|
||||||
if on:
|
if on:
|
||||||
@@ -110,6 +110,8 @@ def index():
|
|||||||
stocks=dymo_sheet.STOCKS,
|
stocks=dymo_sheet.STOCKS,
|
||||||
stock=dymo_sheet.get_stock(sheet.stock),
|
stock=dymo_sheet.get_stock(sheet.stock),
|
||||||
layouts=dymo_sheet.LAYOUTS,
|
layouts=dymo_sheet.LAYOUTS,
|
||||||
|
ink_modes=dymo_sheet.INK_MODES,
|
||||||
|
font_info=tape_printer.font_report(),
|
||||||
size_modes=[(key, text) for key, text in tape_printer.SIZE_MODES
|
size_modes=[(key, text) for key, text in tape_printer.SIZE_MODES
|
||||||
if key in tape_printer.FIXED_MODES],
|
if key in tape_printer.FIXED_MODES],
|
||||||
per_sheet=per_sheet,
|
per_sheet=per_sheet,
|
||||||
|
|||||||
Reference in new issue
Block a user