summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfahim2015-04-13 15:45:15 +0530
committerfahim2015-04-13 15:45:15 +0530
commit3291b73955641525427639f28422c465b132ca21 (patch)
tree82c806cb768a940188ba3e2dc3cdbe1ad55ee03d
parent3e626db04e3d2fadebb649cd55e1035e7eeca395 (diff)
downloadeSim-3291b73955641525427639f28422c465b132ca21.tar.gz
eSim-3291b73955641525427639f28422c465b132ca21.tar.bz2
eSim-3291b73955641525427639f28422c465b132ca21.zip
Subject: Closing all App error
Description: Handle exception while closing application
-rwxr-xr-xsrc/frontEnd/Application.py7
-rwxr-xr-xsrc/frontEnd/ViewManagement.py10
-rw-r--r--src/frontEnd/ViewManagement.pycbin3151 -> 3274 bytes
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.pycbin4646 -> 4646 bytes
-rw-r--r--src/projManagement/Worker.pycbin1425 -> 1425 bytes
5 files changed, 12 insertions, 5 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 4c876474..e09e4113 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -112,7 +112,12 @@ class Application(QtGui.QMainWindow):
proc.terminate()
except:
pass
- self.project.close()
+ ##Just checking if open and New window is open. If yes just close it when application is closed
+ try:
+ self.project.close()
+ except:
+ pass
+
self.close()
def help_project(self):
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py
index 8299e295..bfb294dd 100755
--- a/src/frontEnd/ViewManagement.py
+++ b/src/frontEnd/ViewManagement.py
@@ -95,8 +95,9 @@ class ViewManagement(QtGui.QSplitter):
self.pcb_btn.clicked.connect(self.obj_kicad.openLayout)
self.grid.addWidget(self.pcb_btn,1,1)
- #self.temp = QtGui.QSplitter()
- #self.temp.setOrientation(QtCore.Qt.Vertical)
+ #Adding one more splitter
+ self.browser = QtGui.QSplitter()
+ self.browser.setOrientation(QtCore.Qt.Vertical)
# bind the top level views into the framework
self.views['ProjectExplorer'].setParent(self)
@@ -108,10 +109,11 @@ class ViewManagement(QtGui.QSplitter):
self.views['CurrentProject'].setParent(self.right)
self.views['CurrentProject'].setReadOnly(True)
- #self.views['Browser'].setParent(self.right)
- #self.views['Browser'].setReadOnly(True)
+ self.views['Browser'].setParent(self.browser)
+ self.views['Browser'].setReadOnly(True)
self.right.setParent(self)
+ self.browser.setParent(self)
self.right.setSizes([20, 5])
#self.setSizes([5, 20])
diff --git a/src/frontEnd/ViewManagement.pyc b/src/frontEnd/ViewManagement.pyc
index 5decaa9e..53ca0251 100644
--- a/src/frontEnd/ViewManagement.pyc
+++ b/src/frontEnd/ViewManagement.pyc
Binary files differ
diff --git a/src/kicadtoNgspice/KicadtoNgspice.pyc b/src/kicadtoNgspice/KicadtoNgspice.pyc
index 7370bd4a..b85fc3d8 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.pyc
+++ b/src/kicadtoNgspice/KicadtoNgspice.pyc
Binary files differ
diff --git a/src/projManagement/Worker.pyc b/src/projManagement/Worker.pyc
index b3aadc37..6a4021de 100644
--- a/src/projManagement/Worker.pyc
+++ b/src/projManagement/Worker.pyc
Binary files differ