summaryrefslogtreecommitdiff
path: root/src/main/python/main.py
diff options
context:
space:
mode:
authorBlaine2020-05-27 21:00:23 +0530
committerBlaine2020-05-27 21:00:23 +0530
commit7606d7bb27ce1f9de890f4c8a84232f4649c62bf (patch)
tree6ff0270f0e97e3418671edab4b2978a4208df7d7 /src/main/python/main.py
parentbbbda804aea58b006ed998bf54e581aa8c09e79b (diff)
downloadChemical-PFD-7606d7bb27ce1f9de890f4c8a84232f4649c62bf.tar.gz
Chemical-PFD-7606d7bb27ce1f9de890f4c8a84232f4649c62bf.tar.bz2
Chemical-PFD-7606d7bb27ce1f9de890f4c8a84232f4649c62bf.zip
commit undo modification
Diffstat (limited to 'src/main/python/main.py')
-rw-r--r--src/main/python/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py
index bc65035..3ebb2b9 100644
--- a/src/main/python/main.py
+++ b/src/main/python/main.py
@@ -78,7 +78,7 @@ class appWindow(QMainWindow):
def toolButtonClicked(self, object):
currentDiagram = self.mdi.currentSubWindow().tabber.currentWidget().painter
if currentDiagram:
- graphic = getattr(shapes, object['object'])(**map(lambda x: int(x) if x.isdigit() else x, object['args']))
+ graphic = getattr(shapes, object['object'])(*map(lambda x: int(x) if x.isdigit() else x, object['args']))
# graphic.setPen(QPen(Qt.black, 2))
# graphic.setFlags(QGraphicsItem.ItemIsSelectable | QGraphicsItem.ItemIsMovable)
currentDiagram.addItemPlus(graphic)