Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-06-29 04:21:44 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-06-29 04:21:44 (GMT)
commit74be759f6126fd0950663cd61735a67b8ec2f310 (patch)
treeabb90a5748094619c0ebb5005417347c03516d12 /activity.py
parent8b823a892cee1103cdd352f7aa3f0944170def69 (diff)
pep8 and pylint fixes
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py14
1 files changed, 7 insertions, 7 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)