summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEyantra698Sumanto2022-01-25 19:22:42 +0530
committerEyantra698Sumanto2022-01-25 19:22:42 +0530
commit44119c3a384e47e7848930172ef01b355cd25ad7 (patch)
tree5aea8009eb33909f9e4f584835b3c7c19cbd5a02 /src
parentc19d2338775920f02dc86c2463879517d6c95825 (diff)
downloadeSim-44119c3a384e47e7848930172ef01b355cd25ad7.tar.gz
eSim-44119c3a384e47e7848930172ef01b355cd25ad7.tar.bz2
eSim-44119c3a384e47e7848930172ef01b355cd25ad7.zip
Fixed netlist and OM name
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ngspicetoModelica/ModelicaUI.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ngspicetoModelica/ModelicaUI.py b/src/ngspicetoModelica/ModelicaUI.py
index ecf15bd2..a687bb93 100755
--- a/src/ngspicetoModelica/ModelicaUI.py
+++ b/src/ngspicetoModelica/ModelicaUI.py
@@ -28,7 +28,7 @@ class OpenModelicaEditor(QtWidgets.QWidget):
self.FileEdit.setText(self.ngspiceNetlist)
self.grid.addWidget(self.FileEdit, 0, 0)
- self.browsebtn = QtWidgets.QPushButton("Browse .cir.out")
+ self.browsebtn = QtWidgets.QPushButton("Browse Netlist (*.cir.out)")
self.browsebtn.clicked.connect(self.browseFile)
self.grid.addWidget(self.browsebtn, 0, 1)
@@ -40,7 +40,6 @@ class OpenModelicaEditor(QtWidgets.QWidget):
self.loadOMbtn.clicked.connect(self.callOMEdit)
self.grid.addWidget(self.loadOMbtn, 3, 1)
-
self.OMPathtext = QtWidgets.QLineEdit()
self.OMPathtext.setText("")
self.grid.addWidget(self.OMPathtext, 4, 0)
@@ -56,7 +55,7 @@ class OpenModelicaEditor(QtWidgets.QWidget):
def OMPathbrowseFile(self):
temp = QtCore.QDir.toNativeSeparators(
QtWidgets.QFileDialog.getExistingDirectory(
- self, "Open Open Modelica Directory", "home"
+ self, "Open OpenModelica Directory", "home"
)
)
@@ -235,7 +234,7 @@ class OpenModelicaEditor(QtWidgets.QWidget):
)
def callOMEdit(self):
-
+
try:
modelFiles = glob.glob(self.modelicaNetlist)
modelFiles = ' '.join(file for file in modelFiles)