diff options
author | anjalijaiswal08 | 2019-06-26 03:25:04 +0530 |
---|---|---|
committer | anjalijaiswal08 | 2019-06-27 12:27:43 +0530 |
commit | 4aa019362ae4e133995f6d9ba5727207224f9b8e (patch) | |
tree | 27f8e62056484b6d106c1316a48b58c439b256a3 /src/subcircuit | |
parent | 70528947ee2f03e60c8ccb397270413668a434ac (diff) | |
download | eSim-4aa019362ae4e133995f6d9ba5727207224f9b8e.tar.gz eSim-4aa019362ae4e133995f6d9ba5727207224f9b8e.tar.bz2 eSim-4aa019362ae4e133995f6d9ba5727207224f9b8e.zip |
half commited
Diffstat (limited to 'src/subcircuit')
-rw-r--r-- | src/subcircuit/uploadSub.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/subcircuit/uploadSub.py b/src/subcircuit/uploadSub.py index 28912fbe..a59066a7 100644 --- a/src/subcircuit/uploadSub.py +++ b/src/subcircuit/uploadSub.py @@ -38,11 +38,11 @@ class UploadSub(QtGui.QWidget): subcircuit_path = (os.path.join(os.path.abspath('..'), 'SubcircuitLibrary', create_subcircuit)) if subcircuit_path == "": - self.reply = "NONE" + reply = "NONE" else: - self.reply = self.obj_validation.validateNewproj(str(subcircuit_path)) + reply = self.obj_validation.validateNewproj(str(subcircuit_path)) - if self.reply == "VALID": + if reply == "VALID": print("Validated: Creating subcircuit directory") os.mkdir(subcircuit_path) editfile = str( @@ -81,7 +81,7 @@ class UploadSub(QtGui.QWidget): print("===================") os.rmdir(subcircuit_path) - elif self.reply == "CHECKEXIST": + elif reply == "CHECKEXIST": print("Project name already exists.") print("==========================") msg = QtGui.QErrorMessage(self) @@ -90,7 +90,7 @@ class UploadSub(QtGui.QWidget): the different name or delete existing project") msg.setWindowTitle("Error Message") - elif self.reply == "CHECKNAME": + elif reply == "CHECKNAME": print("Name can not contain space between them") print("===========================") msg = QtGui.QErrorMessage(self) |