summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul P2019-12-18 14:22:36 +0530
committerGitHub2019-12-18 14:22:36 +0530
commite40317e709c220176fc5b7edf23d4434504335b0 (patch)
treed97a2f3543ab4e5164490495ee19f20352ecb71f
parent1f79d5f54604cdc6842acc98511a7c75a3e75aca (diff)
parentb363989cc6f5f230c8e99162bbaf1176810efd8e (diff)
downloadeSim-e40317e709c220176fc5b7edf23d4434504335b0.tar.gz
eSim-e40317e709c220176fc5b7edf23d4434504335b0.tar.bz2
eSim-e40317e709c220176fc5b7edf23d4434504335b0.zip
Merge pull request #125 from FOSSEE/revert-123-fellowship2019-python3
Reverts FOSSEE/eSim#123
-rw-r--r--src/frontEnd/Application.py45
-rw-r--r--src/frontEnd/ProjectExplorer.py2
2 files changed, 0 insertions, 47 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index fdb374ee..4f77a321 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -437,51 +437,6 @@ class Application(QtGui.QMainWindow):
self.modelicaNetlist = os.path.join(
self.projDir, self.projName + ".mo")
- """
- try:
- # Creating a command for Ngspice to Modelica converter
- self.cmd1 = "
- python3 ../ngspicetoModelica/NgspicetoModelica.py "\
- +self.ngspiceNetlist
- self.obj_workThread1 = Worker.WorkerThread(self.cmd1)
- self.obj_workThread1.start()
-
-
- if self.obj_validation.validateTool("OMEdit"):
- # Creating command to run OMEdit
- self.cmd2 = "OMEdit "+self.modelicaNetlist
- self.obj_workThread2 = Worker.WorkerThread(self.cmd2)
- self.obj_workThread2.start()
- else:
- self.msg = QtGui.QMessageBox()
- self.msgContent = "There was an error while
- opening OMEdit.<br/>\
- Please make sure OpenModelica is installed in your\
- system. <br/>\
- To install it on Linux : Go to\
- <a href=https://www.openmodelica.org/download/\
- download-linux>OpenModelica Linux</a> and \
- install nigthly build release.<br/>\
- To install it on Windows : Go to\
- <a href=https://www.openmodelica.org/download/\
- download-windows>OpenModelica Windows</a>\
- and install latest version.<br/>"
- self.msg.setTextFormat(QtCore.Qt.RichText)
- self.msg.setText(self.msgContent)
- self.msg.setWindowTitle("Missing OpenModelica")
- self.obj_appconfig.print_info(self.msgContent)
- self.msg.exec_()
-
- except Exception as e:
- self.msg = QtGui.QErrorMessage()
- self.msg.showMessage(
- 'Unable to convert NgSpice netlist to\
- Modelica netlist :'+str(e))
- self.msg.setWindowTitle(
- "Ngspice to Modelica conversion error")
- self.obj_appconfig.print_error(str(e))
- """
-
self.obj_Mainview.obj_dockarea.modelicaEditor(self.projDir)
else:
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py
index 09e756af..4627d294 100644
--- a/src/frontEnd/ProjectExplorer.py
+++ b/src/frontEnd/ProjectExplorer.py
@@ -101,8 +101,6 @@ class ProjectExplorer(QtGui.QWidget):
menu = QtGui.QMenu()
if level == 0:
- renameProject = menu.addAction(self.tr("Rename Project"))
- renameProject.triggered.connect(self.renameProject)
deleteproject = menu.addAction(self.tr("Remove Project"))
deleteproject.triggered.connect(self.removeProject)
refreshproject = menu.addAction(self.tr("Refresh"))