summaryrefslogtreecommitdiff
path: root/src/subcircuit/newSub.py
diff options
context:
space:
mode:
authoranjalijaiswal082019-06-19 18:03:09 +0530
committeranjalijaiswal082019-06-21 15:56:02 +0530
commit9042022342fcb103ba85fdd6c973b09e6e89f668 (patch)
tree841a4fdc3b58b0b4271b15bae6e4462b6fd5a990 /src/subcircuit/newSub.py
parent1d9967fa80981e856825a5d5910902245f2390ba (diff)
downloadeSim-9042022342fcb103ba85fdd6c973b09e6e89f668.tar.gz
eSim-9042022342fcb103ba85fdd6c973b09e6e89f668.tar.bz2
eSim-9042022342fcb103ba85fdd6c973b09e6e89f668.zip
Issue #88 solved: Documentation improved
Diffstat (limited to 'src/subcircuit/newSub.py')
-rw-r--r--src/subcircuit/newSub.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/subcircuit/newSub.py b/src/subcircuit/newSub.py
index 6b221b4c..678b023d 100644
--- a/src/subcircuit/newSub.py
+++ b/src/subcircuit/newSub.py
@@ -8,10 +8,7 @@ import os
# This class is called when User create new Project.
class NewSub(QtGui.QWidget):
"""
- Contains funstions to check :
- - Name of project should not be blank.
- - Name should not contain space between them.
- - Name does not match with existing project.
+ Contains functions to create directory and validate file names.
"""
def __init__(self):
@@ -21,7 +18,11 @@ class NewSub(QtGui.QWidget):
def createSubcircuit(self, subName):
"""
- This function create Subcircuit related directories and files
+ - This function create workspace for subcircuit.
+ - It also validate file names for Subcircuits:
+ - File name should not contain space.
+ - Name can not be empty.
+ - File name already exists.
"""
self.create_schematic = subName
# Checking if Workspace already exist or not