summaryrefslogtreecommitdiff
path: root/src/frontEnd/Workspace.py
diff options
context:
space:
mode:
authorrahulp132020-02-21 12:39:52 +0530
committerrahulp132020-02-21 12:39:52 +0530
commit567e3b725fcc9d22e27cfd854a573d3e64deaff1 (patch)
treeabd4d995d5891a1196a7ca421b7d7b33cad75552 /src/frontEnd/Workspace.py
parent982b49ef618222af80162aa98c07ab281dec1692 (diff)
downloadeSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.tar.gz
eSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.tar.bz2
eSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.zip
restructured code - pyinstaller
Diffstat (limited to 'src/frontEnd/Workspace.py')
-rw-r--r--src/frontEnd/Workspace.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py
index 09092a69..6940da59 100644
--- a/src/frontEnd/Workspace.py
+++ b/src/frontEnd/Workspace.py
@@ -64,7 +64,7 @@ class Workspace(QtGui.QWidget):
self.cancelbtn = QtGui.QPushButton('Cancel')
self.cancelbtn.clicked.connect(self.defaultWorkspace)
- #Checkbox
+ # Checkbox
self.chkbox = QtGui.QCheckBox('Set Default', self)
self.chkbox.setCheckState(int(self.obj_appconfig.workspace_check))
@@ -82,7 +82,7 @@ class Workspace(QtGui.QWidget):
self.setWindowTitle("eSim")
self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
self.note.setReadOnly(True)
- self.setWindowIcon(QtGui.QIcon('../../images/logo.png'))
+ self.setWindowIcon(QtGui.QIcon('images/logo.png'))
self.setLayout(self.grid)
def defaultWorkspace(self):
@@ -121,7 +121,8 @@ class Workspace(QtGui.QWidget):
file = open(os.path.join(
os.path.expanduser("~"), ".esim/workspace.txt"), 'w'
)
- file.writelines(str(self.obj_appconfig.workspace_check) +
+ file.writelines(
+ str(self.obj_appconfig.workspace_check) +
" " + self.workspace_loc.text()
)
file.close()
@@ -148,10 +149,10 @@ class Workspace(QtGui.QWidget):
self.obj_appconfig.project_explorer = json.load(
open(self.obj_appconfig.dictPath["path"])
)
- except:
+ except BaseException:
self.obj_appconfig.project_explorer = {}
- Appconfig.project_explorer = self.obj_appconfig.project_explorer
+ Appconfig.project_explorer = self.obj_appconfig.project_explorer
var_appView.obj_Mainview.obj_projectExplorer.treewidget.clear()
for parent, children in self.obj_appconfig.project_explorer.items():