kopia lustrzana https://github.com/EmbroidePy/pyembroidery
GenericWriter: Create scheme for dynamic variable value creation
rodzic
05cce93713
commit
0603a9dfc1
|
@ -459,6 +459,10 @@ class GenericWriter:
|
|||
|
||||
# MAIN CODE, there is something to write.
|
||||
if write_segment is not None:
|
||||
if isinstance(write_segment, dict):
|
||||
key, default = write_segment[None]
|
||||
key = key.format_map(self.format_dictionary)
|
||||
write_segment = write_segment.get(key,default)
|
||||
self.update_positions(self.x, self.y, self.cmd)
|
||||
if self.cmd == SEQUIN_MODE:
|
||||
self.open_document()
|
||||
|
|
|
@ -211,7 +211,6 @@ def get_long_jump():
|
|||
return pattern
|
||||
|
||||
|
||||
|
||||
def get_simple_pattern():
|
||||
pattern = EmbPattern()
|
||||
pattern.add_block([(0, 0), (0, 100), (100, 100), (100, 0), (0, 0)], "red")
|
||||
|
|
Ładowanie…
Reference in New Issue