From 68c0ed4e6bb6659928423ea7363ed2f28fbdd4ca Mon Sep 17 00:00:00 2001
From: athulappadan
Date: Fri, 10 Apr 2015 12:17:58 +0530
Subject: Exit method modified
---
src/frontEnd/Application.py | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
(limited to 'src/frontEnd')
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 1d6b4f03..2863ed6c 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -27,6 +27,7 @@ import ViewManagement
import Workspace
import sys
import time
+import subprocess
class Application(QtGui.QMainWindow):
@@ -57,21 +58,20 @@ class Application(QtGui.QMainWindow):
def initActions(self):
-
- self.newproj = QtGui.QAction(QtGui.QIcon('../images/newProject.png'),'New Project',self)
+
+ self.newproj = QtGui.QAction(QtGui.QIcon('../images/newProject.svg'),'New Project',self)
self.newproj.setShortcut('Ctrl+N')
self.newproj.triggered.connect(self.new_project)
-
- self.openproj = QtGui.QAction(QtGui.QIcon('../images/openProject.png'),'Open Project',self)
+ self.openproj = QtGui.QAction(QtGui.QIcon('../images/openProject.svg'),'Open Project',self)
self.openproj.setShortcut('Ctrl+O')
self.openproj.triggered.connect(self.open_project)
- self.exitproj = QtGui.QAction(QtGui.QIcon('../images/closeProject.png'),'Exit',self)
+ self.exitproj = QtGui.QAction(QtGui.QIcon('../images/closeProject.svg'),'Exit',self)
self.exitproj.setShortcut('Ctrl+X')
self.exitproj.triggered.connect(self.exit_project)
- self.helpfile = QtGui.QAction(QtGui.QIcon('../images/helpProject.png'),'Help',self)
+ self.helpfile = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Help',self)
self.helpfile.setShortcut('Ctrl+H')
self.helpfile.triggered.connect(self.help_project)
@@ -106,7 +106,13 @@ class Application(QtGui.QMainWindow):
def exit_project(self):
print "Exit Project called"
- self.destroy()
+ for proc in self.obj_appconfig.procThread_list:
+ try:
+ proc.terminate()
+ except:
+ pass
+ self.project.close()
+ self.close()
def help_project(self):
print "Help is called"
@@ -125,7 +131,7 @@ def main(args):
It is main function of the module.It starts the application
"""
print "Hello Main"
- app = QtGui.QApplication(args)
+ app = QtGui.QApplication(sys.argv)
"""
splash_pix = QtGui.QPixmap('../images/FreeEDAlogo.jpg')
--
cgit