diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-12-25 16:34:18 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-12-25 16:34:18 (GMT) |
commit | 762122d87df2013f1841a5aff2aa2cfd6c76b404 (patch) | |
tree | 1991174f6453d354b483d6ba8294b2d41c95a47c /activity.py | |
parent | 0f295a9a5f6d3e7913a73cb365a161c3bef4520a (diff) |
works with details
Diffstat (limited to 'activity.py')
-rwxr-xr-x | activity.py | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/activity.py b/activity.py index 94d7e06..ce36ce2 100755 --- a/activity.py +++ b/activity.py @@ -31,7 +31,8 @@ class Activity(activity.Activity): def init_vars(self): self._image = None - self._places = {} + + def build_toolbar(self): @@ -83,16 +84,10 @@ class Activity(activity.Activity): self.table.attach(self.box1, 0, 1, 0, 1) self.table.attach(self.box2, 1, 2, 0, 1) - - # buttons to add - #table = gtk.Table(5, 3, False) self.labels_and_values = Data(self) self.box2.add(self.labels_and_values) - - - #self.box2.add(table) self.set_canvas(self.table) @@ -119,29 +114,24 @@ class Activity(activity.Activity): if f is not None: self._image = pygame.image.load(f) self.actividad.set_background(self._image) - #self.actividad.fondo = self._image - #self.actividad.pantalla.blit(self._image, (0, 0)) + def _add_point(self, widget, label="", value="City"): #data = (label, float(value)) #if not data in self.chart_data: pos = self.labels_and_values.add_value(label, value) print 'new pos', pos - self._places[pos] = [value, (0,0)] + #self.chart_data.insert(pos, data) #self._update_chart_data() def _add_coor(self, pos): path = self.labels_and_values.update_selected_value(pos) - self._places[path][1] = pos + self._update_points() def _update_points(self): - self.actividad.update_points(self._places) - - def read_file(self, file_path): - pass + l = self.labels_and_values.get_info() + self.actividad.update_points(l) - def write_file(self, file_path): - pass |