From 7c47d9e2e0458d084ffea649c788a4c2b41520ef Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Tue, 28 May 2019 12:47:00 +0530 Subject: projectManagement documentation added --- src/projManagement/Kicad.py | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) (limited to 'src/projManagement/Kicad.py') diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py index 2eaef643..d8c413c3 100644 --- a/src/projManagement/Kicad.py +++ b/src/projManagement/Kicad.py @@ -22,11 +22,22 @@ from configuration.Appconfig import Appconfig from . import Worker from PyQt4 import QtGui +""" +This class called the Kicad Schematic,KicadtoNgspice Converter,Layout +editor and Footprint Editor +""" + class Kicad: + """ - This class called the Kicad Schematic,KicadtoNgspice Converter,Layout - editor and Footprint Editor + Initialise validation, appconfig and dockarea + + @params + :dockarea => passed from DockArea in frontEnd folder, consists + of all functions for dockarea + + @return """ def __init__(self, dockarea): @@ -34,10 +45,15 @@ class Kicad: self.obj_appconfig = Appconfig() self.obj_dockarea = dockarea + """ + This function create command to open Kicad schematic after + appropriate validation checks + + @params + + @return + """ def openSchematic(self): - """ - This function create command to open Kicad schematic - """ print("Function : Open Kicad Schematic") self.projDir = self.obj_appconfig.current_project["ProjectName"] try: @@ -134,7 +150,14 @@ class Kicad: self.msg.setWindowTitle("Error Message") ''' + """ + This function create command to validate and then call + KicadToNgSPice converter from DockArea file + + @params + @return + """ def openKicadToNgspice(self): """ This function create command to call kicad to Ngspice converter. -- cgit From 1970530f0818577ef6fb1b2018d76829195c87e9 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 7 Jun 2019 18:06:05 +0530 Subject: python calls updated to python3 calls --- src/projManagement/Kicad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/projManagement/Kicad.py') diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py index d8c413c3..8b20112e 100644 --- a/src/projManagement/Kicad.py +++ b/src/projManagement/Kicad.py @@ -180,7 +180,7 @@ class Kicad: # Creating a command to run """ - self.cmd = ("python ../kicadtoNgspice/KicadtoNgspice.py " + self.cmd = ("python3 ../kicadtoNgspice/KicadtoNgspice.py " + "self.project+".cir ") self.obj_workThread = Worker.WorkerThread(self.cmd) self.obj_workThread.start() -- cgit From a0f738ba15264b69d9d51755569408bdd8e383b5 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Fri, 7 Jun 2019 18:54:35 +0530 Subject: pep8 fixes and list models bug fixed --- src/projManagement/Kicad.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/projManagement/Kicad.py') 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. -- cgit