- working on a new type of database

This commit is contained in:
Marius Stanciu
2020-03-01 00:52:24 +02:00
committed by Marius
parent acc61d460b
commit 70d3895799
43 changed files with 1515 additions and 540 deletions

View File

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