diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-06-29 04:21:44 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-06-29 04:21:44 (GMT) |
commit | 74be759f6126fd0950663cd61735a67b8ec2f310 (patch) | |
tree | abb90a5748094619c0ebb5005417347c03516d12 | |
parent | 8b823a892cee1103cdd352f7aa3f0944170def69 (diff) |
pep8 and pylint fixes
-rw-r--r-- | activity.py | 14 | ||||
-rw-r--r-- | charts.py | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/activity.py b/activity.py index a7d92d0..df1360f 100644 --- a/activity.py +++ b/activity.py @@ -592,17 +592,17 @@ class ChartActivity(activity.Activity): chart_data = data['chart_data'] # Update charts buttons - type = data["current_chart.type"] - if type == "vbar": + _type = data["current_chart.type"] + if _type == "vbar": self.chart_type_buttons[0].set_active(True) - elif type == "hbar": + elif _type == "hbar": self.chart_type_buttons[1].set_active(True) - elif type == "line": + elif _type == "line": self.chart_type_buttons[2].set_active(True) - elif type == "pie": + elif _type == "pie": self.chart_type_buttons[3].set_active(True) # Update the controls in the config subtoolbar @@ -693,9 +693,9 @@ class ChartData(gtk.TreeView): elif selected: path = self.model.get_path(selected)[0] + 1 - iter = self.model.insert(path, [label, value]) + _iter = self.model.insert(path, [label, value]) - self.set_cursor(self.model.get_path(iter), + self.set_cursor(self.model.get_path(_iter), self.get_column(1), True) @@ -51,7 +51,7 @@ class Chart(gobject.GObject): 'legend': {'hide': True}, 'titleFontSize': 16, 'axis': { - 'tickFontSize' : 12, + 'tickFontSize': 12, 'labelFontSize': 14, 'x': { 'ticks': [dict(v=i, label=l[0]) for i, |