summaryrefslogtreecommitdiff
path: root/src/projManagement
diff options
context:
space:
mode:
Diffstat (limited to 'src/projManagement')
-rw-r--r--src/projManagement/Kicad.py2
-rw-r--r--src/projManagement/Validation.py4
-rw-r--r--src/projManagement/Worker.py3
-rw-r--r--src/projManagement/newProject.py1
-rw-r--r--src/projManagement/openProject.py1
5 files changed, 11 insertions, 0 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py
index 8b20112e..9aaac46d 100644
--- a/src/projManagement/Kicad.py
+++ b/src/projManagement/Kicad.py
@@ -53,6 +53,7 @@ class Kicad:
@return
"""
+
def openSchematic(self):
print("Function : Open Kicad Schematic")
self.projDir = self.obj_appconfig.current_project["ProjectName"]
@@ -158,6 +159,7 @@ class Kicad:
@return
"""
+
def openKicadToNgspice(self):
"""
This function create command to call kicad to Ngspice converter.
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py
index b0cfb5a1..9fcac9a2 100644
--- a/src/projManagement/Validation.py
+++ b/src/projManagement/Validation.py
@@ -42,6 +42,7 @@ class Validation:
True => If the folder contains the projName.proj file
False => If the folder doesn't contain projName.proj file
"""
+
def __init__(self):
pass
@@ -69,6 +70,7 @@ class Validation:
:"CHECKNAME" => If space is there in name
:"VALID" => If valid project name given
"""
+
def validateNewproj(self, projDir):
"""
This Project Validate New Project Information
@@ -97,6 +99,7 @@ class Validation:
True
False
"""
+
def validateKicad(self, projDir):
"""
This function validate if Kicad components are present
@@ -118,6 +121,7 @@ class Validation:
True
False
"""
+
def validateCir(self, projDir):
"""
This function checks if ".cir" file is present.
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py
index 4cfeefe9..f40fd724 100644
--- a/src/projManagement/Worker.py
+++ b/src/projManagement/Worker.py
@@ -52,6 +52,7 @@ class WorkerThread(QtCore.QThread):
@return
None
"""
+
def __del__(self):
self.wait()
@@ -65,6 +66,7 @@ class WorkerThread(QtCore.QThread):
@return
None
"""
+
def run(self):
print("Worker Thread Calling Command :", self.args)
self.call_system(self.args)
@@ -80,6 +82,7 @@ class WorkerThread(QtCore.QThread):
be executed in different child processes
(see subproces.Popen())
"""
+
def call_system(self, command):
procThread = Appconfig()
proc = subprocess.Popen(command.split())
diff --git a/src/projManagement/newProject.py b/src/projManagement/newProject.py
index ef2440d7..c8cd4078 100644
--- a/src/projManagement/newProject.py
+++ b/src/projManagement/newProject.py
@@ -45,6 +45,7 @@ class NewProjectInfo(QtGui.QWidget):
:dirs => The directories inside the project folder
:filelist => The files inside the project folder
"""
+
def createProject(self, projName):
"""
This function create Project related directories and files
diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py
index d12f4d8a..100cf12c 100644
--- a/src/projManagement/openProject.py
+++ b/src/projManagement/openProject.py
@@ -43,6 +43,7 @@ class OpenProjectInfo(QtGui.QWidget):
:dirs => The directories inside the project folder
:filelist => The files inside the project folder
"""
+
def body(self):
self.obj_Appconfig = Appconfig()
self.openDir = self.obj_Appconfig.default_workspace["workspace"]