def on_videopassword_request(self) -> str:
     dialog = PasswordDialog(self.props.active_window)
     res = dialog.run()
     dialog.destroy()
     if res == Gtk.ResponseType.OK:
         return dialog.password
     return ''
Exemple #2
0
 def on_videopassword_request(self) -> str:
     dialog = PasswordDialog(self.props.active_window)
     res = dialog.run()
     dialog.destroy()
     if res == Gtk.ResponseType.OK:
         return dialog.password
     self.lookup_action('cancel').activate()
     return ''