- more PEP8 changes in Gerber editor

This commit is contained in:
Marius Stanciu 2019-05-20 16:36:13 +03:00 committed by Marius
parent e04db8ca12
commit 008afb3ca8
2 changed files with 20 additions and 13 deletions

View File

@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
=================================================
20.05.2019
- more PEP8 changes in Gerber editor
19.05.2019
- fixed the Circle Steps parameter for both Gerber and Geometry objects not being applied and instead the app internal defaults were used.

View File

@ -82,7 +82,7 @@ class DrawToolShape(object):
return
return pts
def __init__(self, geo={}):
def __init__(self, geo=None):
# Shapely type or list of such
self.geo = geo
@ -525,11 +525,13 @@ class FCPadArray(FCShapeTool):
new_geo_el = dict()
if 'solid' in geo_el:
new_geo_el['solid'] = affinity.translate(geo_el['solid'], xoff=(dx - self.last_dx),
yoff=(dy - self.last_dy))
new_geo_el['solid'] = affinity.translate(
geo_el['solid'], xoff=(dx - self.last_dx), yoff=(dy - self.last_dy)
)
if 'follow' in geo_el:
new_geo_el['follow'] = affinity.translate(geo_el['solid'], xoff=(dx - self.last_dx),
yoff=(dy - self.last_dy))
new_geo_el['follow'] = affinity.translate(
geo_el['solid'], xoff=(dx - self.last_dx), yoff=(dy - self.last_dy)
)
geo_el_list.append(new_geo_el)
else:
@ -849,8 +851,9 @@ class FCRegion(FCShapeTool):
try:
QtGui.QGuiApplication.restoreOverrideCursor()
except:
pass
except Exception as e:
log.debug("FlatCAMGrbEditor.FCRegion --> %s" % str(e))
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero.png'))
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
@ -1863,7 +1866,7 @@ class FCApertureMove(FCShapeTool):
self.geometry.append(DrawToolShape(new_geo_el))
self.current_storage.remove(select_shape)
sel_shapes_to_be_deleted.append(select_shape)
self.draw_app.on_grb_shape_complete(self.current_storage, noplot=True)
self.draw_app.on_grb_shape_complete(self.current_storage, no_plot=True)
self.geometry = []
for shp in sel_shapes_to_be_deleted: