From e10b2de0bec4836b2dc134d56ed573ad1d633ce3 Mon Sep 17 00:00:00 2001 From: fahim Date: Tue, 7 Apr 2015 15:32:15 +0530 Subject: Subject: Added new Icon images and Modified code to get model from xml file Description: Started the work to get the details of model parameter from xml. --- src/frontEnd/Application.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/frontEnd/Application.py') diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index e52ac45b..1d6b4f03 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -57,20 +57,21 @@ class Application(QtGui.QMainWindow): def initActions(self): - - self.newproj = QtGui.QAction(QtGui.QIcon('../images/newProject.svg'),'New Project',self) + + self.newproj = QtGui.QAction(QtGui.QIcon('../images/newProject.png'),'New Project',self) self.newproj.setShortcut('Ctrl+N') self.newproj.triggered.connect(self.new_project) - self.openproj = QtGui.QAction(QtGui.QIcon('../images/openProject.svg'),'Open Project',self) + + self.openproj = QtGui.QAction(QtGui.QIcon('../images/openProject.png'),'Open Project',self) self.openproj.setShortcut('Ctrl+O') self.openproj.triggered.connect(self.open_project) - self.exitproj = QtGui.QAction(QtGui.QIcon('../images/closeProject.svg'),'Exit',self) + self.exitproj = QtGui.QAction(QtGui.QIcon('../images/closeProject.png'),'Exit',self) self.exitproj.setShortcut('Ctrl+X') self.exitproj.triggered.connect(self.exit_project) - self.helpfile = QtGui.QAction(QtGui.QIcon('../images/default.png'),'Help',self) + self.helpfile = QtGui.QAction(QtGui.QIcon('../images/helpProject.png'),'Help',self) self.helpfile.setShortcut('Ctrl+H') self.helpfile.triggered.connect(self.help_project) @@ -79,6 +80,10 @@ class Application(QtGui.QMainWindow): self.mainToolbar.addAction(self.openproj) self.mainToolbar.addAction(self.exitproj) self.mainToolbar.addAction(self.helpfile) + + #self.test = self.addToolBar("Temp") + + def initView(self): @@ -101,12 +106,13 @@ class Application(QtGui.QMainWindow): def exit_project(self): print "Exit Project called" - self.close() + self.destroy() def help_project(self): print "Help is called" print "Current Project : ",self.obj_appconfig.current_project - print "Sourcelist track : ",self.obj_appconfig.sourcelisttrack + + def testing(self): print "Sucess hit kicad button" -- cgit