summaryrefslogtreecommitdiff
path: root/src/frontEnd
diff options
context:
space:
mode:
authorfahim2015-04-22 17:52:04 +0530
committerfahim2015-04-22 17:52:04 +0530
commit342730ed59f75ebe1b5df0f886ae9e6bcd787ee6 (patch)
tree759bb8348608c67057aa58b4c654d9cb2339f62d /src/frontEnd
parentaf98d04dd0a438b7dd63ff72c71f0ceb695fe704 (diff)
downloadeSim-342730ed59f75ebe1b5df0f886ae9e6bcd787ee6.tar.gz
eSim-342730ed59f75ebe1b5df0f886ae9e6bcd787ee6.tar.bz2
eSim-342730ed59f75ebe1b5df0f886ae9e6bcd787ee6.zip
Subject: Added Device Libarary Tab.Few Changes in Workspace class.
Description: Completed the Device Library auto creation of Widget. Added the information to schematicInfo.Hence to the final ".cir.out" file. Added sample device library. Deleted/Comment unwanted print statement. Added details of function in the comment.
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-xsrc/frontEnd/Application.py17
-rw-r--r--src/frontEnd/Application.pycbin3277 -> 4468 bytes
-rwxr-xr-xsrc/frontEnd/ViewManagement.py3
-rw-r--r--src/frontEnd/ViewManagement.pycbin3274 -> 3348 bytes
-rw-r--r--src/frontEnd/Workspace.py6
-rw-r--r--src/frontEnd/Workspace.pycbin3497 -> 3526 bytes
-rw-r--r--src/frontEnd/__init__.pycbin139 -> 138 bytes
7 files changed, 17 insertions, 9 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index e09e4113..b1c9252b 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -82,25 +82,30 @@ class Application(QtGui.QMainWindow):
self.mainToolbar.addAction(self.exitproj)
self.mainToolbar.addAction(self.helpfile)
- #self.test = self.addToolBar("Temp")
-
+
def initView(self):
"""
- Create gui from the class Views and initialize it
+ Create GUI from the class Views and initialize it
"""
self.view = ViewManagement.ViewManagement()
self.setCentralWidget(self.view)
def new_project(self):
+ """
+ This function call New Project Info class.
+ """
print "New Project called"
self.project = NewProjectInfo()
self.project.body()
def open_project(self):
+ """
+ This project call Open Project Info class
+ """
print "Open Project called"
self.project = OpenProjectInfo()
self.project.body()
@@ -127,7 +132,7 @@ class Application(QtGui.QMainWindow):
def testing(self):
- print "Sucess hit kicad button"
+ print "Success hit kicad button"
@@ -136,7 +141,7 @@ def main(args):
"""
It is main function of the module.It starts the application
"""
- print "Hello Main"
+ print "Starting eSim......"
app = QtGui.QApplication(args)
"""
@@ -150,7 +155,7 @@ def main(args):
progressBar.setValue(i)
t = time.time()
while time.time() < t + 0.1:
- app.processEvents()
+ app.processEvents()
time.sleep(2)
diff --git a/src/frontEnd/Application.pyc b/src/frontEnd/Application.pyc
index 52649138..eb322c39 100644
--- a/src/frontEnd/Application.pyc
+++ b/src/frontEnd/Application.pyc
Binary files differ
diff --git a/src/frontEnd/ViewManagement.py b/src/frontEnd/ViewManagement.py
index bfb294dd..cc95c12c 100755
--- a/src/frontEnd/ViewManagement.py
+++ b/src/frontEnd/ViewManagement.py
@@ -26,6 +26,9 @@ from kicadtoNgspice.KicadtoNgspice import *
class ViewManagement(QtGui.QSplitter):
+ """
+ This class creates View on FrontWindow
+ """
def __init__(self, *args):
# call init method of superclass
diff --git a/src/frontEnd/ViewManagement.pyc b/src/frontEnd/ViewManagement.pyc
index 53ca0251..075d7aed 100644
--- a/src/frontEnd/ViewManagement.pyc
+++ b/src/frontEnd/ViewManagement.pyc
Binary files differ
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py
index 8727e799..d759cff6 100644
--- a/src/frontEnd/Workspace.py
+++ b/src/frontEnd/Workspace.py
@@ -23,7 +23,7 @@ import os
class Workspace(QtGui.QWidget):
"""
- Start workspace gui
+ This class creates Workspace GUI.
"""
def __init__(self):
super(Workspace, self).__init__()
@@ -35,7 +35,7 @@ class Workspace(QtGui.QWidget):
def initWorkspace(self):
- print "Calling workspace"
+ #print "Calling workspace"
self.note = QtGui.QTextEdit(self)
self.workspace_label = QtGui.QLabel(self)
self.worspace_loc = QtGui.QLineEdit(self)
@@ -108,7 +108,7 @@ class Workspace(QtGui.QWidget):
def browseLocation(self):
print "Browse Location called"
- self.workspace_directory = QtGui.QFileDialog.getExistingDirectory(self, "open","/home")
+ self.workspace_directory = QtGui.QFileDialog.getExistingDirectory(self, "Browse Location",os.path.expanduser("~"))
print "Path file :", self.workspace_directory
self.worspace_loc.setText(self.workspace_directory)
\ No newline at end of file
diff --git a/src/frontEnd/Workspace.pyc b/src/frontEnd/Workspace.pyc
index 2d2829a6..568412c7 100644
--- a/src/frontEnd/Workspace.pyc
+++ b/src/frontEnd/Workspace.pyc
Binary files differ
diff --git a/src/frontEnd/__init__.pyc b/src/frontEnd/__init__.pyc
index bc735777..4fed5140 100644
--- a/src/frontEnd/__init__.pyc
+++ b/src/frontEnd/__init__.pyc
Binary files differ