From 375614a1f60e4009859d0f17cae735541a39c239 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 23 Nov 2017 18:34:57 -0800 Subject: [PATCH] pylint cleanup --- src/Mod/Path/PathScripts/PathDressupTagGui.py | 16 ---------------- src/Mod/Path/PathScripts/post/phillips_post.py | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathDressupTagGui.py b/src/Mod/Path/PathScripts/PathDressupTagGui.py index f25b55c87d..43fa3242ae 100644 --- a/src/Mod/Path/PathScripts/PathDressupTagGui.py +++ b/src/Mod/Path/PathScripts/PathDressupTagGui.py @@ -100,7 +100,6 @@ class PathDressupTagTaskPanel: FreeCAD.ActiveDocument.recompute() def cleanup(self, gui): - self.removeGlobalCallbacks() self.viewProvider.clearTaskPanel() if gui: FreeCADGui.ActiveDocument.resetEdit() @@ -255,21 +254,6 @@ class PathDressupTagTaskPanel: def editSelectedTag(self): self.editTag(self.form.lwTags.currentItem()) - def removeGlobalCallbacks(self): - if hasattr(self, 'view') and self.view: - if self.pointCbClick: - self.view.removeEventCallbackPivy(coin.SoMouseButtonEvent.getClassTypeId(), self.pointCbClick) - self.pointCbClick = None - if self.pointCbMove: - self.view.removeEventCallbackPivy(coin.SoLocation2Event.getClassTypeId(), self.pointCbMove) - self.pointCbMove = None - self.view = None - - def setupSpinBox(self, widget, val, decimals = 2): - if decimals: - widget.setDecimals(decimals) - widget.setValue(val) - def setFields(self): self.updateTagsView() self.form.sbCount.setValue(len(self.Positions)) diff --git a/src/Mod/Path/PathScripts/post/phillips_post.py b/src/Mod/Path/PathScripts/post/phillips_post.py index 6a0b236569..8f14dc7b8a 100644 --- a/src/Mod/Path/PathScripts/post/phillips_post.py +++ b/src/Mod/Path/PathScripts/post/phillips_post.py @@ -44,6 +44,7 @@ TOOLTIP_ARGS = ''' ''' example post for Maho M 600E mill''' import FreeCAD import time +from PathScripts import PathUtils from PathScripts import PostUtils import math