Exemplo n.º 1
0
 def select(self):
     if self._orig:
         return True;
     self.name, self.id, self._orig = chooser.pick(
             lambda jobject: (jobject.metadata['title'], jobject.object_id,
                     theme.pixbuf(jobject.file_path)),
             (None, None, None), what=chooser.IMAGE)
     if self.name:
         self._thumb = theme.scale(self._orig)
         return True
     else:
         return False
Exemplo n.º 2
0
 def select(self):
     sound = chooser.pick(lambda jobject: JournalSound(jobject),
                          what=chooser.AUDIO)
     if sound:
         sound.select()
     return sound
Exemplo n.º 3
0
 def select(self):
     try:
         return chooser.pick(lambda jobject: JournalGround(jobject),
                             what=chooser.IMAGE)
     except:
         return None