From 28d8fd378bf717e8daba8a564708856769f24b98 Mon Sep 17 00:00:00 2001 From: maddy-2 Date: Mon, 27 May 2019 12:32:49 +0530 Subject: initialise pep8 compliance, using autopep8 --- src/subcircuit/openSub.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/subcircuit/openSub.py') diff --git a/src/subcircuit/openSub.py b/src/subcircuit/openSub.py index fb349f0a..32ad5d39 100644 --- a/src/subcircuit/openSub.py +++ b/src/subcircuit/openSub.py @@ -8,17 +8,20 @@ class openSub(QtGui.QWidget): """ This class is called when User click on Open Project Button """ + def __init__(self): super(openSub, self).__init__() self.obj_appconfig = Appconfig() - + def body(self): - self.editfile = str(QtGui.QFileDialog.getExistingDirectory(None,"Open File","../SubcircuitLibrary")) + self.editfile = str( + QtGui.QFileDialog.getExistingDirectory( + None, "Open File", "../SubcircuitLibrary")) if self.editfile: self.obj_Appconfig = Appconfig() 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 " + self.editfile = os.path.join(self.editfile, self.schname) + self.cmd = "eeschema " + self.editfile + ".sch " self.obj_workThread = WorkerThread(self.cmd) - self.obj_workThread.start() \ No newline at end of file + self.obj_workThread.start() -- cgit From 818c3f2d43914940ba3cdf580c5a6f26a8200834 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Tue, 28 May 2019 00:27:24 +0530 Subject: projectManagement, ngspicetoModelica, subcircuit made pep8 compliant --- src/subcircuit/openSub.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/subcircuit/openSub.py') diff --git a/src/subcircuit/openSub.py b/src/subcircuit/openSub.py index 32ad5d39..ba6d0617 100644 --- a/src/subcircuit/openSub.py +++ b/src/subcircuit/openSub.py @@ -19,7 +19,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 " -- cgit