kopia lustrzana https://github.com/brendabell/knittingtools
added xml prolog
rodzic
4a3387c5ea
commit
a12b68c043
|
|
@ -0,0 +1 @@
|
||||||
|
# intentionally empty
|
||||||
|
|
@ -139,7 +139,7 @@ class PCGenerator:
|
||||||
for i in sorted_objects:
|
for i in sorted_objects:
|
||||||
diagram.add(i)
|
diagram.add(i)
|
||||||
|
|
||||||
return diagram.tostring()
|
return '<?xml version="1.0" encoding="UTF-8" standalone="no"?>{}'.format(diagram.tostring())
|
||||||
|
|
||||||
def create_card(self):
|
def create_card(self):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
# intentionally empty
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
from pcgenerator import PCGenerator
|
# invocation: python -m test.test
|
||||||
|
|
||||||
|
from modules.pcgenerator import PCGenerator
|
||||||
|
|
||||||
pattern='-x--\n-xxx\nxxx-\n--x-\n'
|
pattern='-x--\n-xxx\nxxx-\n--x-\n'
|
||||||
machine = '12-stitch-br-sr'
|
machine = '12-stitch-br-sr'
|
||||||
#machine = '24-stitch-br-sr'
|
#machine = '24-stitch-br-sr'
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue