- minor PEP corrections

This commit is contained in:
Marius Stanciu
2020-10-31 18:46:20 +02:00
committed by Marius Stanciu
parent ffe4f0d641
commit e71a48ff5c
6 changed files with 52 additions and 68 deletions

View File

@@ -1266,7 +1266,7 @@ class TransformEditorTool(AppTool):
"""
Rotate geometry
:param num: Rotate with a known angle value, val
:param val: Rotate with a known angle value, val
:param point: Reference point for rotation: tuple
:return:
"""
@@ -1326,6 +1326,7 @@ class TransformEditorTool(AppTool):
"""
Skew geometry
:param point:
:param axis: Axis on which to deform, skew
:param xval: Skew value on X axis
:param yval: Skew value on Y axis
@@ -1888,7 +1889,8 @@ class DrawTool(object):
def utility_geometry(self, data=None):
return None
def bounds(self, obj):
@staticmethod
def bounds(obj):
def bounds_rec(o):
if type(o) is list:
minx = np.Inf
@@ -3688,7 +3690,6 @@ class AppGeoEditor(QtCore.QObject):
self.clear()
self.app.ui.geo_edit_toolbar.setDisabled(True)
settings = QSettings("Open Source", "FlatCAM")
self.app.ui.corner_snap_btn.setVisible(False)
self.app.ui.snap_magnet.setVisible(False)