diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-02-14 19:23:02 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-02-14 19:23:02 (GMT) |
commit | 5a6dd12541e080654f6d598f74fdca71df1012c1 (patch) | |
tree | 315ad9b5ea455f085460ddbefa5cb96695cc00a6 /activity.py | |
parent | 38f8e653ea81d1c5b81dc09c6952ce526ddcabde (diff) |
Rename set_data with __init__
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/activity.py b/activity.py index 58f70eb..0f907e4 100644 --- a/activity.py +++ b/activity.py @@ -490,10 +490,8 @@ class SimpleGraph(activity.Activity): "StopWatch") if boolean: - reader = StopWatch() - f = open(file_path) - reader.set_data(f) + reader = StopWatch(f) stopwatchs_list, count = reader.get_stopwatchs_with_marks() @@ -530,10 +528,8 @@ class SimpleGraph(activity.Activity): 'Measure') if boolean: - reader = Measure() f = open(file_path) - - reader.set_data(f) + reader = Measure(f) self.v_label.entry.set_text(_('Values')) self.h_label.entry.set_text(_('Samples')) |