Skip to content

Commit 17892bf

Browse files
authored
Merge branch 'main' into invalid3band
2 parents ab1b4e3 + 43c3da8 commit 17892bf

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

LabelGenerator.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,21 @@ def __init__(
118118
)
119119

120120

121+
FULL_A4 = PaperConfig(
122+
paper_name="Full A4",
123+
pagesize=A4,
124+
sticker_width=66 * mm,
125+
sticker_height=26 * mm,
126+
sticker_corner_radius=0 * mm,
127+
left_margin=6 * mm,
128+
top_margin=5.5 * mm,
129+
horizontal_stride=66 * mm,
130+
vertical_stride=26 * mm,
131+
num_stickers_horizontal=3,
132+
num_stickers_vertical=11,
133+
)
134+
135+
121136
class StickerRect:
122137
def __init__(self, c: Canvas, layout: PaperConfig, row: int, column: int, mirror: bool):
123138
self.left = layout.left_margin + layout.horizontal_stride * column
@@ -634,6 +649,8 @@ def render_outlines(c: Canvas, layout: PaperConfig) -> None:
634649
#
635650
# The list constants below can be used with the generate_values function to quickly create sets of
636651
# common resistor values.
652+
E3_VALUES = [100, 220, 470]
653+
E6_VALUES = [100, 150, 220, 330, 470, 680]
637654
E12_VALUES = [100, 120, 150, 180, 220, 270, 330, 390, 470, 560, 680, 820]
638655
E24_COMMON_VALUES = [100, 120, 150, 180, 200, 220, 240, 270, 300,
639656
330, 360, 390, 430, 470, 510, 560, 620, 680, 750, 820, 910]
@@ -691,6 +708,7 @@ def main() -> None:
691708
layout = AVERY_5260
692709
# layout = AVERY_L7157
693710
# layout = EJ_RANGE_24
711+
# layout = FULL_A4
694712

695713
# ############################################################################
696714
# Put your own resistor values in here!

0 commit comments

Comments
 (0)