def element_start(self, name, attributes): """Adds a new polygon for each new gx:Track, and watches for location data.""" if name == 'gx:Track': polygon = Polygon() map_view.add_layer(polygon) self.polygons.add(polygon) self.append = polygon.append_point return False return True
def __init__(self): self.selection = get_obj('photos_view').get_selection() self.selection.set_mode(Gtk.SelectionMode.MULTIPLE) self.layer = Champlain.MarkerLayer() map_view.add_layer(self.layer) self.selection.connect('changed', update_highlights) self.selection.connect('changed', selection_sensitivity, *[get_obj(name) for name in ('close_button', 'save_button', 'revert_button', 'jump_button')])
def element_start(self, name, attributes): """Adds a new polygon for each new segment, and watches for track points.""" if name == 'trkseg': polygon = Polygon() map_view.add_layer(polygon) self.polygons.add(polygon) self.append = polygon.append_point if name == 'trkpt': return True return False
def __init__(self): self.select_all = get_obj('select_all_button') self.selection = get_obj('photos_view').get_selection() self.selection.set_mode(Gtk.SelectionMode.MULTIPLE) self.layer = Champlain.MarkerLayer() map_view.add_layer(self.layer) self.selection.connect('changed', update_highlights) self.selection.connect( 'changed', selection_sensitivity, *[ get_obj(name) for name in ('apply_button', 'close_button', 'save_button', 'revert_button') ])