summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorfahim2015-02-17 15:13:02 +0530
committerfahim2015-02-17 15:13:02 +0530
commit756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496 (patch)
tree915c62da4d5df5d06f307c73e81defa976e02b46 /src/frontEnd/Application.py
parent74d560add00621421d366759bcc80900d8e14d8a (diff)
downloadeSim-756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496.tar.gz
eSim-756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496.tar.bz2
eSim-756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496.zip
Subject: openProject and Validation
Description: Included openProject and Validation module
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-xsrc/frontEnd/Application.py26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index ccc08248..a261d67c 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -20,16 +20,18 @@
from PyQt4 import QtGui, QtCore
from configuration.Appconfig import Appconfig
+from projManagement.openProject import ProjectInfo
+import os
import ViewManagement
import Workspace
import sys
import time
+
class Application(QtGui.QMainWindow):
"""
Its our main window of application
"""
-
def __init__(self,*args):
"""
Initialize main Application window
@@ -39,19 +41,15 @@ class Application(QtGui.QMainWindow):
#Creating Application configuration object
-
self.confObj = Appconfig()
-
- self.setGeometry(self.confObj.app_xpos,
- self.confObj.app_ypos,
- self.confObj.app_width,
- self.confObj.app_heigth)
+ self.setGeometry(self.confObj._app_xpos,
+ self.confObj._app_ypos,
+ self.confObj._app_width,
+ self.confObj._app_heigth)
self.setWindowTitle(self.confObj._APPLICATION)
#Init Workspace
self.work_space = Workspace.Workspace()
-
-
-
+
#Init necessary components in sequence
self.initActions()
self.initView()
@@ -95,15 +93,20 @@ class Application(QtGui.QMainWindow):
def new_project(self):
print "New Project called"
+
def open_project(self):
print "Open Project called"
+ self.project = ProjectInfo()
+ self.project.body()
def exit_project(self):
print "Exit Project called"
+ self.close()
def help_project(self):
print "Help is called"
+
@@ -114,6 +117,7 @@ def main(args):
print "Hello Main"
app = QtGui.QApplication(sys.argv)
+ """
splash_pix = QtGui.QPixmap('../images/FreeEDAlogo.jpg')
splash = QtGui.QSplashScreen(splash_pix,QtCore.Qt.WindowStaysOnTopHint)
progressBar = QtGui.QProgressBar(splash)
@@ -136,7 +140,7 @@ def main(args):
appView = Application()
appView.show()
sys.exit(app.exec_())
- """
+