pylint cleanup

This commit is contained in:
Markus Lampert
2017-11-23 18:34:57 -08:00
committed by Yorik van Havre
parent 9d9d99f3b2
commit 375614a1f6
2 changed files with 1 additions and 16 deletions

View File

@@ -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))

View File

@@ -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