summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorfahim2015-02-10 14:51:07 +0530
committerfahim2015-02-10 14:51:07 +0530
commit775f9c18568ad2f7c480fad271e281dbc235e796 (patch)
tree3c6875f7323162c4e61653393e179941fa9b0061 /src/frontEnd/Application.py
parente91a76c90a2ee829c337251e9adc33767c808b51 (diff)
downloadeSim-775f9c18568ad2f7c480fad271e281dbc235e796.tar.gz
eSim-775f9c18568ad2f7c480fad271e281dbc235e796.tar.bz2
eSim-775f9c18568ad2f7c480fad271e281dbc235e796.zip
Subject: Added few more gui component
Description: Kicad button,converter button and Ngspice button.
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-xsrc/frontEnd/Application.py34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index b77651be..7f783ff3 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -47,10 +47,8 @@ class Application(QtGui.QMainWindow):
self.confObj.app_width,
self.confObj.app_heigth)
self.setWindowTitle(self.confObj._APPLICATION)
-
#Init Workspace
self.work_space = Workspace.Workspace()
-
@@ -63,19 +61,19 @@ class Application(QtGui.QMainWindow):
self.newproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'New Project',self)
self.newproj.setShortcut('Ctrl+N')
- self.newproj.triggered.connect(self.testfn)
+ self.newproj.triggered.connect(self.new_project)
self.openproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Open Project',self)
self.openproj.setShortcut('Ctrl+O')
- self.openproj.triggered.connect(self.testfn)
+ self.openproj.triggered.connect(self.open_project)
self.exitproj = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Exit',self)
self.exitproj.setShortcut('Ctrl+X')
- self.exitproj.triggered.connect(self.testfn)
+ self.exitproj.triggered.connect(self.exit_project)
self.helpfile = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Help',self)
self.helpfile.setShortcut('Ctrl+H')
- self.helpfile.triggered.connect(self.testfn)
+ self.helpfile.triggered.connect(self.help_project)
self.mainToolbar = self.addToolBar('Top Navigation')
self.mainToolbar.addAction(self.newproj)
@@ -97,7 +95,16 @@ class Application(QtGui.QMainWindow):
def new_project(self):
print "New Project called"
+
+ def open_project(self):
+ print "Open Project called"
+
+ def exit_project(self):
+ print "Exit Project called"
+ def help_project(self):
+ print "Help is called"
+
def main(args):
@@ -105,11 +112,20 @@ def main(args):
It is main function of the module.It starts the application
"""
app = QtGui.QApplication(args)
-
appView = Application()
appView.show()
- sys.exit(app.exec_())
-
+ sys.exit(app.exec_())
+ """
+ while 1:
+ print work_space.status_label.text()
+ if work_space.status_label.text() == 'OK':
+ print "OK"
+ appView.show()
+ break
+ else:
+ pass
+
+ """