Skip to content

Commit 5caacc1

Browse files
committed
qtvcp -qt_vismach: remove requirement for comp argument
not needed so far but could be used in the future, I suppose.
1 parent 48a7892 commit 5caacc1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/python/qtvcp/lib/qt_vismach/primitives.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,12 +994,11 @@ class HalToolCylinder(CylinderZ):
994994
IMPERIAL = 25.4
995995
MODEL_SCALING = IMPERIAL
996996

997-
def __init__(self, comp, *args):
997+
def __init__(self, comp=None, *args):
998998
# get machine access so it can
999999
# change itself as it runs
10001000
# specifically tool cylinder in this case.
10011001
CylinderZ.__init__(self, *args)
1002-
self.comp = comp
10031002

10041003
def coords(self):
10051004
# get diameter and divide by 2 to get radius.
@@ -1026,7 +1025,7 @@ def set_tool_scale(self, scale):
10261025
# we use a triangle for the tool
10271026
# since we need to visualize a lathe tool here
10281027
class HalToolTriangle(TriangleXZ):
1029-
def __init__(self, comp, *args):
1028+
def __init__(self, comp=None, *args):
10301029
# get machine access so it can
10311030
# change itself as it runs
10321031
# specifically tool cylinder in this case.

0 commit comments

Comments
 (0)