summaryrefslogtreecommitdiff
path: root/src/subcircuit
diff options
context:
space:
mode:
authorSunil Shetye2019-06-27 17:06:52 +0530
committerGitHub2019-06-27 17:06:52 +0530
commit9fca9eec6fd4ee2001361d2b459d13dcb0a8a924 (patch)
tree4c23d5d525f835933459388ed2bfce8d7b053f9c /src/subcircuit
parenta620e3f94c46f02d7ee1b58bdb5fb7cc8e7be2f1 (diff)
parent9e3dbaf428a899e34490cbfcb11ca7c9bb7af60a (diff)
downloadeSim-9fca9eec6fd4ee2001361d2b459d13dcb0a8a924.tar.gz
eSim-9fca9eec6fd4ee2001361d2b459d13dcb0a8a924.tar.bz2
eSim-9fca9eec6fd4ee2001361d2b459d13dcb0a8a924.zip
Merge pull request #104 from anjalijaiswal08/RenameProject
Rename project Done
Diffstat (limited to 'src/subcircuit')
-rw-r--r--src/subcircuit/convertSub.py8
-rw-r--r--src/subcircuit/newSub.py5
-rw-r--r--src/subcircuit/openSub.py6
3 files changed, 11 insertions, 8 deletions
diff --git a/src/subcircuit/convertSub.py b/src/subcircuit/convertSub.py
index 49f5a54f..7bdccfb2 100644
--- a/src/subcircuit/convertSub.py
+++ b/src/subcircuit/convertSub.py
@@ -44,12 +44,12 @@ class convertSub(QtGui.QWidget):
else:
self.msg = QtGui.QErrorMessage(None)
self.msg.showMessage(
- 'The subcircuit does not contain any Kicad netlist\
- file for conversion.')
+ 'The subcircuit does not contain any Kicad netlist file'
+ + ' for conversion.')
self.msg.setWindowTitle("Error Message")
else:
self.msg = QtGui.QErrorMessage(None)
self.msg.showMessage(
- 'Please select the subcircuit first. You can either create \
- new subcircuit or open existing subcircuit')
+ 'Please select the subcircuit first. You can either create'
+ + ' new subcircuit or open existing subcircuit')
self.msg.setWindowTitle("Error Message")
diff --git a/src/subcircuit/newSub.py b/src/subcircuit/newSub.py
index 678b023d..bd88064a 100644
--- a/src/subcircuit/newSub.py
+++ b/src/subcircuit/newSub.py
@@ -8,7 +8,10 @@ import os
# This class is called when User create new Project.
class NewSub(QtGui.QWidget):
"""
- Contains functions to create directory and validate file names.
+ Contains functions to check :
+ - Name of project should not be blank.
+ - Name should not contain space between them.
+ - Name does not match with existing project.
"""
def __init__(self):
diff --git a/src/subcircuit/openSub.py b/src/subcircuit/openSub.py
index bebd28a1..dd6e31ac 100644
--- a/src/subcircuit/openSub.py
+++ b/src/subcircuit/openSub.py
@@ -21,9 +21,9 @@ class openSub(QtGui.QWidget):
None, "Open File", "../SubcircuitLibrary"))
if self.editfile:
self.obj_Appconfig = Appconfig()
- self.obj_Appconfig.current_subcircuit['SubcircuitName'] = (
- self.editfile
- )
+ self.obj_Appconfig.current_subcircuit['SubcircuitName'] \
+ = self.editfile
+
self.schname = os.path.basename(self.editfile)
self.editfile = os.path.join(self.editfile, self.schname)
self.cmd = "eeschema " + self.editfile + ".sch "