Esempio n. 1
0
 def update_highlights(self, selection):
     """Ensure only the selected labels are highlighted."""
     selection_exists = selection.count_selected_rows() > 0
     selected.clear()
     for label in MarkerLayer.get_markers():
         photo = label.photo
         itr = photo.iter
         if itr and selection.iter_is_selected(itr):
             selected.add(photo)
         label.set_highlight(photo in selected, selection_exists)
Esempio n. 2
0
def teardown():
    """Clean it all up."""
    TrackFile.clear_all()
    for camera in Camera.instances:
        camera.photos.clear()
    for photo in list(Photograph.instances):
        photo.destroy()
    Photograph.cache.clear()
    modified.clear()
    selected.clear()
    Widgets.loaded_photos.clear()
    system('git checkout demo')
    for key in Gst.list_keys():
        Gst.reset(key)
Esempio n. 3
0
def teardown():
    """Clean it all up."""
    TrackFile.clear_all()
    for camera in Camera.instances:
        camera.photos.clear()
    for photo in list(Photograph.instances):
        photo.destroy()
    Photograph.cache.clear()
    modified.clear()
    selected.clear()
    Widgets.loaded_photos.clear()
    system('git checkout demo')
    for key in Gst.list_keys():
        Gst.reset(key)