summaryrefslogtreecommitdiff
path: root/src/subcircuit/newSub.py
diff options
context:
space:
mode:
authorrahulp132020-02-14 15:16:35 +0530
committerrahulp132020-02-14 15:16:35 +0530
commitcb55e59de7ee4383c04edfae7c39ad9ae9552b36 (patch)
treede1b292a10e8196689bf1a208fe6fe32f4618846 /src/subcircuit/newSub.py
parent08d4a0336550a0e610709970a0c5d366e109fe82 (diff)
downloadeSim-cb55e59de7ee4383c04edfae7c39ad9ae9552b36.tar.gz
eSim-cb55e59de7ee4383c04edfae7c39ad9ae9552b36.tar.bz2
eSim-cb55e59de7ee4383c04edfae7c39ad9ae9552b36.zip
common code for Win and Linux, merged py2 changes
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":