summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoher2015-06-29 12:54:30 +0530
committerxoher2015-06-29 12:54:30 +0530
commit739696c6c2d100b42d147b5451cb67bfc6063923 (patch)
tree77a3a8efe448f3c857011688ac62ae83af19918a
parent0d7dcfcf35e731900ffd6aa3f066d5bf8cbe0191 (diff)
downloadeSim-739696c6c2d100b42d147b5451cb67bfc6063923.tar.gz
eSim-739696c6c2d100b42d147b5451cb67bfc6063923.tar.bz2
eSim-739696c6c2d100b42d147b5451cb67bfc6063923.zip
Code cleanup for Application and Workspace files
-rwxr-xr-xsrc/frontEnd/Application.py1
-rw-r--r--src/frontEnd/Workspace.py22
2 files changed, 3 insertions, 20 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 615c3f5f..62278f9e 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -299,7 +299,6 @@ def main(args):
splash.show()
#QtGui.QApplication.setStyle(QtGui.QStyleFactory.create("Cleanlooks"))
appView = Application()
- appView.spl=splash
appView.obj_workspace.returnWhetherClickedOrNot(appView)
appView.hide()
appView.obj_workspace.show()
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py
index aceac6a5..f2dbc1b4 100644
--- a/src/frontEnd/Workspace.py
+++ b/src/frontEnd/Workspace.py
@@ -48,9 +48,7 @@ class Workspace(QtGui.QWidget):
self.note.append(self.obj_appconfig.workspace_text)
self.workspace_label.setText("Workspace:")
self.workspace_loc.setText(self.obj_appconfig.home)
- self.imp_var=0
- self.close_var=0
- self.window_open_close=0
+
#Buttons
self.browsebtn = QtGui.QPushButton('Browse')
self.browsebtn.clicked.connect(self.browseLocation)
@@ -82,19 +80,8 @@ class Workspace(QtGui.QWidget):
self.obj_appconfig.print_info('Default workspace selected : ' + self.obj_appconfig.default_workspace["workspace"])
self.close()
var_appView.show()
- def calledFromApplicationToAssignSysAndApp(self,sys,app):
- global var_sys,var_app
- var_sys=sys
- var_app=app
-
+
- #var_sys.exit(var_app.exec_())
- """def closeEvent(self, event):
- if self.imp_var==0:
- self.close_var=1
- self.destroy()
- event.accept()
- self.window_open_close=1"""
def close(self, *args, **kwargs):
@@ -126,10 +113,7 @@ class Workspace(QtGui.QWidget):
self.imp_var=1
self.close()
var_appView.show()
- """var_appView.obj_Mainview.setVisible(True)
- var_appView.obj_appconfig.setVisible(True)
- super.topToolbar.setVisible(True)
- super.lefttoolbar.setVisible(True)"""
+
def browseLocation(self):
print "Browse Location called"