summaryrefslogtreecommitdiff
path: root/src/frontEnd
diff options
context:
space:
mode:
authorFahim2016-03-01 17:24:00 +0530
committerFahim2016-03-01 17:24:00 +0530
commit9347ac2e7c7d7c0693cd85327297b519196dbb90 (patch)
treee296f8b423f063bef60cc6115f6d6b3adfe5e3c8 /src/frontEnd
parent44d403c92bf62a8885e2a2cddf2bd4019c5532b9 (diff)
downloadeSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.gz
eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.bz2
eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.zip
Remove all unwanted print command
Diffstat (limited to 'src/frontEnd')
-rwxr-xr-xsrc/frontEnd/Application.py28
-rw-r--r--src/frontEnd/ProjectExplorer.py1
-rw-r--r--src/frontEnd/Workspace.py14
3 files changed, 18 insertions, 25 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index f17a2d80..b80bdb5f 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -182,8 +182,7 @@ class Application(QtGui.QMainWindow):
def close_project(self):
- print "Close Project is called"
- #current_project = {"ProjectName":None}
+ print "Function : Close Project"
current_project = self.obj_appconfig.current_project['ProjectName']
if current_project==None:
pass
@@ -204,7 +203,7 @@ class Application(QtGui.QMainWindow):
self.obj_Mainview.obj_projectExplorer.addTreeNode(directory, filelist)
else:
- print "No project created"
+ print "No new project created"
self.obj_appconfig.print_info('No new project created')
try:
self.obj_appconfig.print_info('Current project is : ' + self.obj_appconfig.current_project["ProjectName"])
@@ -215,7 +214,7 @@ class Application(QtGui.QMainWindow):
"""
This project call Open Project Info class
"""
- print "Open Project called"
+ print "Function : Open Project"
self.project = OpenProjectInfo()
try:
@@ -228,9 +227,9 @@ class Application(QtGui.QMainWindow):
def help_project(self):
- print "Help is called"
+ print "Function : Help"
self.obj_appconfig.print_info('Help is called')
- print "Current Project : ",self.obj_appconfig.current_project
+ print "Current Project is : ",self.obj_appconfig.current_project
self.obj_Mainview.obj_dockarea.usermanual()
@@ -250,9 +249,10 @@ class Application(QtGui.QMainWindow):
self.obj_Mainview.obj_dockarea.plottingEditor()
except Exception as e:
self.msg = QtGui.QErrorMessage(None)
- self.msg.showMessage('Error while opening python plotting Editor.')
- print "Exception:",str(e)
- self.obj_appconfig.print_error('Exception generated : ' + str(e))
+ self.msg.showMessage('Error while opening python plotting Editor.\
+ Please look at console for more details ')
+ print "Exception Message:",str(e)
+ self.obj_appconfig.print_error('Exception Message : ' + str(e))
self.msg.setWindowTitle("Error Message")
else:
@@ -261,12 +261,12 @@ class Application(QtGui.QMainWindow):
self.msg.setWindowTitle("Error Message")
def open_subcircuit(self):
- print "Subcircuit editor is called"
+ print "Function : Subcircuit editor"
self.obj_appconfig.print_info('Subcircuit editor is called')
self.obj_Mainview.obj_dockarea.subcircuiteditor()
def open_nghdl(self):
- print "Nghdl is called"
+ print "Function : Nghdl"
self.obj_appconfig.print_info('Nghdl is called')
if self.obj_validation.validateTool('nghdl'):
@@ -282,8 +282,8 @@ class Application(QtGui.QMainWindow):
def open_modelEditor(self):
- print "model editor is called"
- self.obj_appconfig.print_info('model editor is called')
+ print "Function : Model editor"
+ self.obj_appconfig.print_info('Model editor is called')
self.obj_Mainview.obj_dockarea.modelEditor()
@@ -341,7 +341,7 @@ class Application(QtGui.QMainWindow):
def open_OMoptim(self):
- print "OM Optim is called"
+ print "Function : OM Optim"
self.obj_appconfig.print_info('OM Optim is called')
#Check if OMOptim is installed
if self.obj_validation.validateTool("OMOptim"):
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py
index 4cc6db54..6c96227a 100644
--- a/src/frontEnd/ProjectExplorer.py
+++ b/src/frontEnd/ProjectExplorer.py
@@ -130,7 +130,6 @@ class ProjectExplorer(QtGui.QWidget):
filename= self.indexItem.data().toString()
self.filePath= str(self.indexItem.sibling(self.indexItem.row(), 1).data().toString())
filelistnew= os.listdir(os.path.join(self.filePath))
- print filelistnew
parentnode = self.treewidget.currentItem()
count = parentnode.childCount()
for i in range(count):
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py
index 3e3cf0de..7cefa6c6 100644
--- a/src/frontEnd/Workspace.py
+++ b/src/frontEnd/Workspace.py
@@ -75,7 +75,7 @@ class Workspace(QtGui.QWidget):
def defaultWorkspace(self):
- print "Default location selected"
+ print "Default workspace selected : "+self.obj_appconfig.default_workspace["workspace"]
self.imp_var=1
self.obj_appconfig.print_info('Default workspace selected : ' + self.obj_appconfig.default_workspace["workspace"])
self.close()
@@ -89,8 +89,6 @@ class Workspace(QtGui.QWidget):
def close(self, *args, **kwargs):
self.window_open_close=1
self.close_var=1
- #with var_cond:
- # var_cond.notify()
return QtGui.QWidget.close(self, *args, **kwargs)
@@ -98,17 +96,14 @@ class Workspace(QtGui.QWidget):
global var_appView
var_appView=appView
-
-
+
def createWorkspace(self):
- print "Create workspace is called"
+ print "Function : Create workspace"
self.create_workspace = str(self.workspace_loc.text())
self.obj_appconfig.print_info('Workspace : ' + self.create_workspace)
#Checking if Workspace already exist or not
if os.path.isdir(self.create_workspace):
- print "Already present"
self.obj_appconfig.default_workspace["workspace"] = self.create_workspace
-
else:
os.mkdir(self.create_workspace)
self.obj_appconfig.default_workspace["workspace"] = self.create_workspace
@@ -120,8 +115,7 @@ class Workspace(QtGui.QWidget):
def browseLocation(self):
- print "Browse Location called"
+ print "Function : Browse Location"
self.workspace_directory = QtGui.QFileDialog.getExistingDirectory(self, "Browse Location",os.path.expanduser("~"))
- print "Path file :", self.workspace_directory
self.workspace_loc.setText(self.workspace_directory)
\ No newline at end of file