fixed proper use of settings in paintbox.py

This commit is contained in:
Ba-So 2020-08-14 12:40:36 +02:00 committed by Florian Festi
parent f6e2773810
commit d34d6ed987
2 changed files with 4 additions and 4 deletions

View File

@ -1407,7 +1407,7 @@ class Boxes:
px += w
if skip and skip(x, y, r, b, px, py):
continue
self.hole(px, py, r)
self.hole(px, py, r=r)
def __skipcircle(self, x, y, r, b, posx, posy):
cx, cy = x / 2.0, y / 2.0

View File

@ -49,9 +49,9 @@ class PaintStorage(Boxes):
if self.hexpattern:
self.moveTo(self.minspace/2, self.minspace/2)
settings = self.hexHolesSettings
settings.setValues('diameter', self.candiameter)
settings.setValues('distance', self.minspace)
settings.setValues('style', 'cricle')
settings.diameter = self.candiameter
settings.distance = self.minspace
settings.style = 'circle'
self.hexHolesRectangle(self.y - 1*self.minspace,
self.x - 1*self.minspace,
settings)