From 74be759f6126fd0950663cd61735a67b8ec2f310 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Fri, 29 Jun 2012 04:21:44 +0000 Subject: pep8 and pylint fixes --- 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) diff --git a/charts.py b/charts.py index 89dbf92..8cf81fb 100644 --- a/charts.py +++ b/charts.py @@ -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, -- cgit v0.9.1