summaryrefslogtreecommitdiff
path: root/src/modelEditor/ModelEditor.py
diff options
context:
space:
mode:
authorfahim2015-06-08 14:21:19 +0530
committerfahim2015-06-08 14:21:19 +0530
commita783d14e674082a49ab5d5b7943ec5fc1f4c98f2 (patch)
tree3c89bbf40981d76b108d052967656f6c27652a4f /src/modelEditor/ModelEditor.py
parent2a87f0eae40b90cc0657e46cbb8532d99f9373ab (diff)
downloadeSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.gz
eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.tar.bz2
eSim-a783d14e674082a49ab5d5b7943ec5fc1f4c98f2.zip
Subject: Added Note Area changes
Description: Added Note Area Changes
Diffstat (limited to 'src/modelEditor/ModelEditor.py')
-rw-r--r--src/modelEditor/ModelEditor.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modelEditor/ModelEditor.py b/src/modelEditor/ModelEditor.py
index 68f0735c..7e5e8434 100644
--- a/src/modelEditor/ModelEditor.py
+++ b/src/modelEditor/ModelEditor.py
@@ -1,6 +1,7 @@
from PyQt4 import QtGui, QtCore
from PyQt4.Qt import QTableWidgetItem
import xml.etree.ElementTree as ET
+from configuration.Appconfig import Appconfig
import os
@@ -8,6 +9,7 @@ class ModelEditorclass(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(self)
self.savepathtest = '../deviceModelLibrary'
+ self.obj_appconfig = Appconfig()
self.newflag=0
self.layout = QtGui.QVBoxLayout()
self.splitter= QtGui.QSplitter()
@@ -330,6 +332,7 @@ class ModelEditorclass(QtGui.QWidget):
txtfile.write('+ ' + tags + '=' + text +'\n')
txtfile.write(')')
tree.write(self.modelname +".xml")
+ self.obj_appconfig.print_info('New ' + self.modelname + ' ' + self.model_name + ' library created at ' + os.getcwd())
if self.mos.isChecked():
savepath = os.path.join(self.savepath, 'MOS')
os.chdir(savepath)
@@ -339,6 +342,7 @@ class ModelEditorclass(QtGui.QWidget):
txtfile.write('+ ' + tags + '=' + text +'\n')
txtfile.write(')')
tree.write(self.modelname +".xml")
+ self.obj_appconfig.print_info('New ' + self.modelname + ' ' + self.model_name + ' library created at ' + os.getcwd())
if self.jfet.isChecked():
savepath = os.path.join(self.savepath, 'JFET')
os.chdir(savepath)
@@ -348,6 +352,7 @@ class ModelEditorclass(QtGui.QWidget):
txtfile.write('+ ' + tags + '=' + text +'\n')
txtfile.write(')')
tree.write(self.modelname +".xml")
+ self.obj_appconfig.print_info('New ' + self.modelname + ' ' + self.model_name + ' library created at ' + os.getcwd())
if self.igbt.isChecked():
savepath = os.path.join(self.savepath, 'IGBT')
os.chdir(savepath)
@@ -357,6 +362,7 @@ class ModelEditorclass(QtGui.QWidget):
txtfile.write('+ ' + tags + '=' + text +'\n')
txtfile.write(')')
tree.write(self.modelname +".xml")
+ self.obj_appconfig.print_info('New ' + self.modelname + ' ' + self.model_name + ' library created at ' + os.getcwd())
if self.magnetic.isChecked():
savepath = os.path.join(self.savepath, 'Misc')
os.chdir(savepath)
@@ -366,6 +372,7 @@ class ModelEditorclass(QtGui.QWidget):
txtfile.write('+ ' + tags + '=' + text +'\n')
txtfile.write(')')
tree.write(self.modelname +".xml")
+ self.obj_appconfig.print_info('New ' + self.modelname + ' ' + self.model_name + ' library created at ' + os.getcwd())
if self.bjt.isChecked():
savepath = os.path.join(self.savepath, 'Transistor')
os.chdir(savepath)
@@ -375,6 +382,7 @@ class ModelEditorclass(QtGui.QWidget):
txtfile.write('+ ' + tags + '=' + text +'\n')
txtfile.write(')')
tree.write(self.modelname +".xml")
+ self.obj_appconfig.print_info('New ' + self.modelname + ' ' + self.model_name + ' library created at ' + os.getcwd())
txtfile.close()
os.chdir(defaultcwd)
@@ -408,6 +416,7 @@ class ModelEditorclass(QtGui.QWidget):
for tags, text in self.modeldict.items():
ET.SubElement(param, tags).text = text
self.tree.write(editfile)
+ self.obj_appconfig.print_info('Updated library ' + libpath)
def removeparameter(self):
self.savebtn.setDisabled(False)