fixed proper use of settings in paintbox.py
This commit is contained in:
parent
f6e2773810
commit
d34d6ed987
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue