diff options
author | Agustin Zubiaga <aguzubiaga97@gmail.com> | 2012-02-06 23:42:52 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguzubiaga97@gmail.com> | 2012-02-06 23:42:52 (GMT) |
commit | c11b46b173612fdf70e389e58eff0416af8c286d (patch) | |
tree | ebf84ad72d8aca39d21929c2be4ae1789e86b685 /activity.py | |
parent | cb58c8fce759ea963099e408c7e4c25de7d0e72f (diff) |
Remove unused variables
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/activity.py b/activity.py index eb96eea..c6a72f0 100644 --- a/activity.py +++ b/activity.py @@ -234,9 +234,6 @@ class SimpleGraph(activity.Activity): toolbarbox.toolbar.insert(options_button, -1) - self.options = [self.chart_color_btn, self.line_color_btn, - self.h_label, self.v_label] - separator = gtk.SeparatorToolItem() separator.set_draw(True) separator.set_expand(False) @@ -322,10 +319,6 @@ class SimpleGraph(activity.Activity): self._render_chart(fullscreen=True) activity.Activity.fullscreen(self) - def __options_toggled_cb(self, widget): - is_active = widget.get_active() - self.options.set_visible(is_active) - def _render_chart(self, fullscreen=False): if self.current_chart is None: return @@ -349,6 +342,7 @@ class SimpleGraph(activity.Activity): # Set options self.current_chart.set_color_scheme(color=self.chart_color) self.current_chart.set_line_color(self.chart_line_color) + if self.current_chart.type == "pie": self.current_chart.render(self) else: |