- more PEP8 changes
This commit is contained in:
parent
e8ecf7a83c
commit
2369ebe72a
@ -1630,25 +1630,17 @@ class ToolPaint(FlatCAMTool, Gerber):
|
|||||||
self.app.draw_moving_selection_shape(old_coords=(self.cursor_pos[0], self.cursor_pos[1]),
|
self.app.draw_moving_selection_shape(old_coords=(self.cursor_pos[0], self.cursor_pos[1]),
|
||||||
coords=(curr_pos[0], curr_pos[1]))
|
coords=(curr_pos[0], curr_pos[1]))
|
||||||
|
|
||||||
def paint_poly(self, obj,
|
def paint_poly(self, obj, inside_pt=None, poly_list=None, tooldia=None, overlap=None, order=None,
|
||||||
inside_pt=None,
|
margin=None, method=None, outname=None, connect=None, contour=None, tools_storage=None,
|
||||||
poly_list=None,
|
plot=True, run_threaded=True):
|
||||||
tooldia=None,
|
|
||||||
overlap=None,
|
|
||||||
order=None,
|
|
||||||
margin=None,
|
|
||||||
method=None,
|
|
||||||
outname=None,
|
|
||||||
connect=None,
|
|
||||||
contour=None,
|
|
||||||
tools_storage=None,
|
|
||||||
plot=True,
|
|
||||||
run_threaded=True):
|
|
||||||
"""
|
"""
|
||||||
Paints a polygon selected by clicking on its interior or by having a point coordinates given
|
Paints a polygon selected by clicking on its interior or by having a point coordinates given
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
* The margin is taken directly from the form.
|
* The margin is taken directly from the form.
|
||||||
|
:param run_threaded:
|
||||||
|
:param plot:
|
||||||
|
:param poly_list:
|
||||||
:param obj: painted object
|
:param obj: painted object
|
||||||
:param inside_pt: [x, y]
|
:param inside_pt: [x, y]
|
||||||
:param tooldia: Diameter of the painting tool
|
:param tooldia: Diameter of the painting tool
|
||||||
@ -1909,21 +1901,13 @@ class ToolPaint(FlatCAMTool, Gerber):
|
|||||||
else:
|
else:
|
||||||
job_thread(app_obj=self.app)
|
job_thread(app_obj=self.app)
|
||||||
|
|
||||||
def paint_poly_all(self, obj,
|
def paint_poly_all(self, obj, tooldia=None, overlap=None, order=None, margin=None, method=None, outname=None,
|
||||||
tooldia=None,
|
connect=None, contour=None, tools_storage=None, plot=True, run_threaded=True):
|
||||||
overlap=None,
|
|
||||||
order=None,
|
|
||||||
margin=None,
|
|
||||||
method=None,
|
|
||||||
outname=None,
|
|
||||||
connect=None,
|
|
||||||
contour=None,
|
|
||||||
tools_storage=None,
|
|
||||||
plot=True,
|
|
||||||
run_threaded=True):
|
|
||||||
"""
|
"""
|
||||||
Paints all polygons in this object.
|
Paints all polygons in this object.
|
||||||
|
|
||||||
|
:param run_threaded:
|
||||||
|
:param plot:
|
||||||
:param obj: painted object
|
:param obj: painted object
|
||||||
:param tooldia: a tuple or single element made out of diameters of the tools to be used
|
:param tooldia: a tuple or single element made out of diameters of the tools to be used
|
||||||
:param overlap: value by which the paths will overlap
|
:param overlap: value by which the paths will overlap
|
||||||
@ -2499,6 +2483,8 @@ class ToolPaint(FlatCAMTool, Gerber):
|
|||||||
"""
|
"""
|
||||||
Paints all polygons in this object that are within the sel_obj object
|
Paints all polygons in this object that are within the sel_obj object
|
||||||
|
|
||||||
|
:param run_threaded:
|
||||||
|
:param plot:
|
||||||
:param obj: painted object
|
:param obj: painted object
|
||||||
:param sel_obj: paint only what is inside this object bounds
|
:param sel_obj: paint only what is inside this object bounds
|
||||||
:param tooldia: a tuple or single element made out of diameters of the tools to be used
|
:param tooldia: a tuple or single element made out of diameters of the tools to be used
|
||||||
@ -2974,6 +2960,8 @@ class ToolPaint(FlatCAMTool, Gerber):
|
|||||||
"""
|
"""
|
||||||
Paints all polygons in this object that are within the sel_obj object
|
Paints all polygons in this object that are within the sel_obj object
|
||||||
|
|
||||||
|
:param run_threaded:
|
||||||
|
:param plot:
|
||||||
:param obj: painted object
|
:param obj: painted object
|
||||||
:param sel_obj: paint only what is inside this object bounds
|
:param sel_obj: paint only what is inside this object bounds
|
||||||
:param tooldia: a tuple or single element made out of diameters of the tools to be used
|
:param tooldia: a tuple or single element made out of diameters of the tools to be used
|
||||||
|
Loading…
Reference in New Issue
Block a user