- working on a new type of database
This commit is contained in:
@@ -49,9 +49,9 @@ class HPGL2:
|
||||
self.units = 'MM'
|
||||
|
||||
# storage for the tools
|
||||
self.tools = dict()
|
||||
self.tools = {}
|
||||
|
||||
self.default_data = dict()
|
||||
self.default_data = {}
|
||||
self.default_data.update({
|
||||
"name": '_ncc',
|
||||
"plot": self.app.defaults["geometry_plot"],
|
||||
@@ -153,7 +153,7 @@ class HPGL2:
|
||||
"""
|
||||
|
||||
# Coordinates of the current path, each is [x, y]
|
||||
path = list()
|
||||
path = []
|
||||
|
||||
geo_buffer = []
|
||||
|
||||
@@ -209,7 +209,7 @@ class HPGL2:
|
||||
match = self.sp_re.search(gline)
|
||||
if match:
|
||||
tool = match.group(1)
|
||||
# self.tools[tool] = dict()
|
||||
# self.tools[tool] = {}
|
||||
self.tools.update({
|
||||
tool: {
|
||||
'tooldia': float('%.*f' %
|
||||
|
||||
Reference in New Issue
Block a user