From 20b23a7934f7cf01cd5b4353ddd2e008b40e5ffd Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Thu, 13 Jun 2019 11:10:23 +0530 Subject: linebreak issue fixed for json_data --- src/kicadtoNgspice/DeviceModel.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/kicadtoNgspice/DeviceModel.py') diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py index 30ad6985..57fd3f25 100644 --- a/src/kicadtoNgspice/DeviceModel.py +++ b/src/kicadtoNgspice/DeviceModel.py @@ -90,8 +90,9 @@ class DeviceModel(QtGui.QWidget): json_data["deviceModel"][key][0]): self.entry_var[self.count].setText( json_data["deviceModel"][key][0]) - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) else: self.entry_var[self.count].setText("") except BaseException: @@ -153,8 +154,9 @@ class DeviceModel(QtGui.QWidget): try: if os.path.exists( json_data["deviceModel"][key][0]): - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) self.entry_var[self.count].setText( json_data["deviceModel"][key][0]) else: @@ -219,8 +221,9 @@ class DeviceModel(QtGui.QWidget): json_data["deviceModel"][key][0]): self.entry_var[self.count].setText( json_data["deviceModel"][key][0]) - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) else: self.entry_var[self.count].setText("") except BaseException: @@ -332,8 +335,9 @@ class DeviceModel(QtGui.QWidget): if (i - beg) == 0: if os.path.exists( json_data["deviceModel"][key][0]): - path_name = json_data - ["deviceModel"][key][0] + path_name = ( + json_data["deviceModel"][key][0] + ) else: self.entry_var[i].setText("") i = i + 1 -- cgit