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/ngspiceSimulation/NgspiceWidget.py | 2 +- src/ngspiceSimulation/pythonPlotting.py | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/ngspiceSimulation') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 695bfa50..def1d4e9 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -31,7 +31,7 @@ class NgspiceWidget(QtGui.QWidget): ( self.obj_appconfig.proc_dict [self.obj_appconfig.current_project['ProjectName']].append( - self.process.pid()) + self.process.pid()) ) # For Windows OS diff --git a/src/ngspiceSimulation/pythonPlotting.py b/src/ngspiceSimulation/pythonPlotting.py index 848d9d54..7cff21ef 100644 --- a/src/ngspiceSimulation/pythonPlotting.py +++ b/src/ngspiceSimulation/pythonPlotting.py @@ -175,10 +175,10 @@ class plotWindow(QtGui.QMainWindow): "List of Branches:") self.funcLabel.setText("Function:") self.funcName.setText( - "Standard functions\ + "Standard functions\

Addition:
Subtraction:
\ Multiplication:
Division:
Comparison:" - ) + ) self.funcExample.setText( "\n\nNode1 + Node2\nNode1 - Node2\nNode1 * Node2\nNode1 / Node2\ \nNode1 vs Node2") @@ -507,7 +507,12 @@ class plotWindow(QtGui.QMainWindow): loc_x += 50 loc_y += 50 # Adding object of multimeter to dictionary - self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']].append(self.obj[j]) + ( + self.obj_appconfig. + dock_dict[ + self.obj_appconfig.current_project['ProjectName']]. + append(self.obj[j]) + ) if boxCheck == 0: QtGui.QMessageBox.about( -- cgit