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.py18
-rw-r--r--src/projManagement/Worker.py8
-rw-r--r--src/projManagement/newProject.py3
-rw-r--r--src/projManagement/openProject.py2
5 files changed, 11 insertions, 22 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py
index b75c0cf6..0b34015f 100644
--- a/src/projManagement/Kicad.py
+++ b/src/projManagement/Kicad.py
@@ -42,8 +42,6 @@ class Kicad:
self.obj_appconfig = Appconfig()
self.obj_dockarea = dockarea
-
-
def openSchematic(self):
"""
This function create command to open Kicad schematic after
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py
index 79e458d8..65103282 100644
--- a/src/projManagement/Validation.py
+++ b/src/projManagement/Validation.py
@@ -22,8 +22,6 @@ import re
import distutils.spawn
-
-
class Validation:
"""
This is Validation class use for validating Project.
@@ -41,12 +39,13 @@ class Validation:
projName is same as the folder selected
@params
- :projDir => contains the path of the project folder selected to open
+ :projDir => contains the path of the project folder selected\
+ to open
@return
True => If the folder contains the projName.proj file
False => If the folder doesn't contain projName.proj file
- """
+ """
print("Function: Validating Open Project Information")
projName = os.path.basename(str(projDir))
lookProj = os.path.join(str(projDir), projName + ".proj")
@@ -56,8 +55,6 @@ class Validation:
else:
return False
-
-
def validateNewproj(self, projDir):
"""
Validate new project created
@@ -69,7 +66,7 @@ class Validation:
:"CHECKEXIST" => If smae project name folder exists
:"CHECKNAME" => If space is there in name
:"VALID" => If valid project name given
- """
+ """
print("Function: Validating New Project Information")
# Checking existence of project with same name
@@ -82,8 +79,6 @@ class Validation:
else:
return "VALID"
-
-
def validateKicad(self, projDir):
"""
Validate if projDir is set appropriately in the function calling file
@@ -103,8 +98,6 @@ class Validation:
else:
return True
-
-
def validateCir(self, projDir):
"""
Validate if cir file present in the directory with the appropriate .cir
@@ -132,7 +125,8 @@ class Validation:
@params
:subDir => the path of the subcircuit directory
- :giveNum => the number of port calculated and passed for validation
+ :giveNum => the number of port calculated and passed for\
+ validation
@return
True
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py
index 99d30ccc..9b9f57e4 100644
--- a/src/projManagement/Worker.py
+++ b/src/projManagement/Worker.py
@@ -19,6 +19,7 @@ from PyQt4 import QtCore
import subprocess
from configuration.Appconfig import Appconfig
+
class WorkerThread(QtCore.QThread):
"""
Initialise a QThread with the passed arguments
@@ -39,8 +40,6 @@ class WorkerThread(QtCore.QThread):
QtCore.QThread.__init__(self)
self.args = args
-
-
def __del__(self):
"""
__del__ is a called whenever garbage collection is initialised
@@ -54,7 +53,6 @@ class WorkerThread(QtCore.QThread):
"""
self.wait()
-
def run(self):
"""
run is the function that is called, when we start the thread as
@@ -77,8 +75,8 @@ class WorkerThread(QtCore.QThread):
track processes called
@params
- :command => (self.args) takes space separated string of comamnds to
- be executed in different child processes
+ :command => (self.args) takes space separated string of\
+ comamnds to be executed in different child processes
(see subproces.Popen())
"""
diff --git a/src/projManagement/newProject.py b/src/projManagement/newProject.py
index 92e90742..44a7a69a 100644
--- a/src/projManagement/newProject.py
+++ b/src/projManagement/newProject.py
@@ -23,7 +23,6 @@ import os
import json
-
class NewProjectInfo(QtGui.QWidget):
"""
This class is called when User create new Project.
@@ -39,7 +38,7 @@ class NewProjectInfo(QtGui.QWidget):
This function create Project related directories and files.
Before creating also validates using the `Validation` class
- Validation codes
+ Validation codes
- VALID
- CHECKEXIST
diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py
index 7c9e23d1..c1a56dbc 100644
--- a/src/projManagement/openProject.py
+++ b/src/projManagement/openProject.py
@@ -28,11 +28,11 @@ class OpenProjectInfo(QtGui.QWidget):
"""
This class is called when User click on Open Project Button
"""
+
def __init__(self):
super(OpenProjectInfo, self).__init__()
self.obj_validation = Validation()
-
def body(self):
"""
Open a project directory using Qt GUI and validate