Skip to content

Commit 95f0f7e

Browse files
committed
Fixed Python type issues
1 parent 6d6097a commit 95f0f7e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Stretch/kiplug/arc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def To_SVG(self, fp = False):
131131

132132
parameters = '<path style="fill:none;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1'
133133
parameters += ';stroke:#' + Colour().Assign(self.layer)
134-
parameters += ';stroke-width:' + self.width + 'mm'
134+
parameters += ';stroke-width:' + str(self.width) + 'mm'
135135
parameters += '" '
136136
parameters += 'd="' + a + '" '
137137
# parameters += 'id="path' + str(id) + '" '

Stretch/kiplug/board.py

+2
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ def To_SVG(self):
242242
else:
243243
print(base.svg)
244244
print('---')
245+
print(layer)
246+
print('---')
245247
print(base.svg.find('g', {'inkscape:label': layer}, recursive=False))
246248
print(base.svg.find('g', {'inkscape:label': layer}, recursive=True))
247249
print('--->')

Stretch/kiplug/line.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def To_SVG(self, fp = False):
142142

143143
parameters = '<path style="fill:none;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1'
144144
parameters += ';stroke:#' + Colour().Assign(self.layer)
145-
parameters += ';stroke-width:' + self.width + 'mm'
145+
parameters += ';stroke-width:' + str(self.width) + 'mm'
146146
parameters += '" '
147147
parameters += 'd="M ' + str(float(self.start[0]) * pxToMM) + ',' + str(float(self.start[1]) * pxToMM) + ' ' + str(float(self.end[0]) * pxToMM) + ',' + str(float(self.end[1]) * pxToMM) + '" '
148148
# parameters += 'id="path' + str(id) + '" '

0 commit comments

Comments
 (0)