Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions LabelGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ def __init__(
)


FULL_A4 = PaperConfig(
paper_name="Full A4",
pagesize=A4,
sticker_width=66 * mm,
sticker_height=26 * mm,
sticker_corner_radius=0 * mm,
left_margin=6 * mm,
top_margin=5.5 * mm,
horizontal_stride=66 * mm,
vertical_stride=26 * mm,
num_stickers_horizontal=3,
num_stickers_vertical=11,
)


class StickerRect:
def __init__(self, c: Canvas, layout: PaperConfig, row: int, column: int, mirror: bool):
self.left = layout.left_margin + layout.horizontal_stride * column
Expand Down Expand Up @@ -691,6 +706,7 @@ def main() -> None:
layout = AVERY_5260
# layout = AVERY_L7157
# layout = EJ_RANGE_24
# layout = FULL_A4

# ############################################################################
# Put your own resistor values in here!
Expand Down
Loading