Exemplo n.º 1
0
 def on_dlgMainPwd_response(self, widget, response):
     if response == 1:
         mpwd = self.__gui.get_widget('entryMPwd').get_text()
         if len(safe.get_safe().keys()) > 0:
             e = safe.get_entry(safe.get_safe().keys()[0])
             if e:
                 try:
                     safe.decrypt(e[1], mpwd)
                 except:
                     self.__gui.get_widget('entryMPwd').set_text('')
                     return
         self.__master_pwd = mpwd
         self.__dlg.hide()
     else:
         gtk.main_quit()
Exemplo n.º 2
0
 def __update_list(self):
     _s = safe.get_safe()
     self.store.clear()
     for k in _s.keys():
         self.store.append([k])