kopia lustrzana https://github.com/EmbroidePy/pyembroidery
15 wiersze
401 B
Python
15 wiersze
401 B
Python
from .EmbThread import *
|
|
|
|
READ_FILE_IN_TEXT_MODE = True
|
|
|
|
|
|
def read(f, out, settings=None):
|
|
count = int(f.readline())
|
|
for i in range(0, count):
|
|
line = f.readline()
|
|
splits = line.split(",")
|
|
thread = EmbThread()
|
|
thread.catalog_number = splits[0]
|
|
thread.set_color(int(splits[1]), int(splits[2]), int(splits[3]))
|
|
out.add_thread(thread)
|