From cabc5063df1f1d02e801de838d316d05bd58e424 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Mon, 24 Jun 2019 13:08:56 +0530 Subject: Resolves #91 --- src/modelEditor/ModelEditor.py | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/modelEditor/ModelEditor.py b/src/modelEditor/ModelEditor.py index 1dce456e..f72a3bf2 100644 --- a/src/modelEditor/ModelEditor.py +++ b/src/modelEditor/ModelEditor.py @@ -492,10 +492,10 @@ class ModelEditorclass(QtGui.QWidget): self.modelname + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - txtfile.write('+ ' + tags + '=' + text + '\n') - txtfile.write(')') + txtfile.write(' ' + tags + '=' + text) + txtfile.write(' )') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -513,10 +513,10 @@ class ModelEditorclass(QtGui.QWidget): self.modelname + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - txtfile.write('+ ' + tags + '=' + text + '\n') - txtfile.write(')') + txtfile.write(' ' + tags + '=' + text) + txtfile.write(' )') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -534,10 +534,10 @@ class ModelEditorclass(QtGui.QWidget): self.modelname + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - txtfile.write('+ ' + tags + '=' + text + '\n') - txtfile.write(')') + txtfile.write(' ' + tags + '=' + text) + txtfile.write(' )') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -555,10 +555,10 @@ class ModelEditorclass(QtGui.QWidget): self.modelname + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - txtfile.write('+ ' + tags + '=' + text + '\n') - txtfile.write(')') + txtfile.write(' ' + tags + '=' + text) + txtfile.write(' )') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -576,10 +576,10 @@ class ModelEditorclass(QtGui.QWidget): self.modelname + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - txtfile.write('+ ' + tags + '=' + text + '\n') - txtfile.write(')') + txtfile.write(' ' + tags + '=' + text) + txtfile.write(' )') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -597,10 +597,10 @@ class ModelEditorclass(QtGui.QWidget): self.modelname + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - txtfile.write('+ ' + tags + '=' + text + '\n') - txtfile.write(')') + txtfile.write(' ' + tags + '=' + text) + txtfile.write(' )') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -645,10 +645,10 @@ class ModelEditorclass(QtGui.QWidget): self.ref_model + ' ' + self.model_name + - '(\n') + '(') for tags, text in list(self.modeldict.items()): - libfile.write('+ ' + tags + '=' + text + '\n') - libfile.write(')') + libfile.write(' ' + tags + '=' + text) + libfile.write(' )') libfile.close() root = ET.Element("library") -- cgit From 25c2c25c3db4c053cabd9be859051337dce5c369 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Mon, 24 Jun 2019 16:12:13 +0530 Subject: new lines added --- src/modelEditor/ModelEditor.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modelEditor/ModelEditor.py b/src/modelEditor/ModelEditor.py index f72a3bf2..c22cee5c 100644 --- a/src/modelEditor/ModelEditor.py +++ b/src/modelEditor/ModelEditor.py @@ -495,7 +495,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): txtfile.write(' ' + tags + '=' + text) - txtfile.write(' )') + txtfile.write(' )\n') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -516,7 +516,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): txtfile.write(' ' + tags + '=' + text) - txtfile.write(' )') + txtfile.write(' )\n') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -537,7 +537,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): txtfile.write(' ' + tags + '=' + text) - txtfile.write(' )') + txtfile.write(' )\n') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -558,7 +558,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): txtfile.write(' ' + tags + '=' + text) - txtfile.write(' )') + txtfile.write(' )\n') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -579,7 +579,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): txtfile.write(' ' + tags + '=' + text) - txtfile.write(' )') + txtfile.write(' )\n') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -600,7 +600,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): txtfile.write(' ' + tags + '=' + text) - txtfile.write(' )') + txtfile.write(' )\n') tree.write(self.modelname + ".xml") self.obj_appconfig.print_info( 'New ' + @@ -648,7 +648,7 @@ class ModelEditorclass(QtGui.QWidget): '(') for tags, text in list(self.modeldict.items()): libfile.write(' ' + tags + '=' + text) - libfile.write(' )') + libfile.write(' )\n') libfile.close() root = ET.Element("library") -- cgit