Hide side property in PathDeburr.py

This commit is contained in:
Schildkroet
2020-03-08 13:10:05 +01:00
committed by GitHub
parent 78dd7a61aa
commit 927c509d52

View File

@@ -78,6 +78,7 @@ class ObjectDeburr(PathEngraveBase.ObjectOp):
obj.Direction = ['CW', 'CCW']
obj.addProperty('App::PropertyEnumeration', 'Side', 'Deburr', QtCore.QT_TRANSLATE_NOOP('PathDeburr', 'Side of Operation'))
obj.Side = ['Outside', 'Inside']
obj.setEditorMode('Side', 2) # Hide property, it's always outside
obj.addProperty('App::PropertyInteger', 'EntryPoint', 'Deburr', QtCore.QT_TRANSLATE_NOOP('PathDeburr', 'Select the segment, there the operations starts'))
def opOnDocumentRestored(self, obj):