summaryrefslogtreecommitdiff
path: root/src/subcircuit/newSub.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/subcircuit/newSub.py')
-rw-r--r--src/subcircuit/newSub.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/subcircuit/newSub.py b/src/subcircuit/newSub.py
index bd88064a..90f60319 100644
--- a/src/subcircuit/newSub.py
+++ b/src/subcircuit/newSub.py
@@ -5,7 +5,7 @@ from projManagement import Worker
import os
-# This class is called when User create new Project.
+# This class is called when User creates new Project.
class NewSub(QtGui.QWidget):
"""
Contains functions to check :
@@ -54,32 +54,30 @@ class NewSub(QtGui.QWidget):
self.obj_workThread.start()
self.close()
except BaseException:
- # print "Some Thing Went Wrong"
self.msg = QtGui.QErrorMessage(self)
self.msg.showMessage(
- 'Unable to create subcircuit. Please make sure\
- you have write permission on ' +
- self.schematic_path)
+ 'Unable to create subcircuit. Please make sure ' +
+ 'you have write permission on ' + self.schematic_path
+ )
self.msg.setWindowTitle("Error Message")
self.obj_appconfig.current_subcircuit['SubcircuitName'] \
= self.schematic_path
elif self.reply == "CHECKEXIST":
- # print "Project already exist"
self.msg = QtGui.QErrorMessage(self)
self.msg.showMessage(
- 'The subcircuit "' +
- self.create_schematic +
- '" already exist.Please select the different name or delete'
- + 'existing subcircuit')
+ 'The subcircuit "' + self.create_schematic +
+ '" already exist.Please select the different name or delete' +
+ 'existing subcircuit'
+ )
self.msg.setWindowTitle("Error Message")
elif self.reply == "CHECKNAME":
- # print "Name is not proper"
self.msg = QtGui.QErrorMessage(self)
self.msg.showMessage(
- 'The subcircuit name should not contain space between them')
+ 'The subcircuit name should not contain space between them'
+ )
self.msg.setWindowTitle("Error Message")
elif self.reply == "NONE":