Skip to content
Snippets Groups Projects
Commit 09565d13 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

a bit more beautiful

parent 1de55816
No related branches found
No related tags found
No related merge requests found
......@@ -217,12 +217,13 @@ class passphrase_Window:
"""Class for Passphrase Window"""
def run(self):
"""Wait for Ok button to be pressed and return passphrase"""
rep = self.xml.get_widget("Passphrase").run()
win = self.xml.get_widget("Passphrase")
rep = win.run()
if rep == gtk.RESPONSE_OK:
msg = self.entry.get_text()
else:
msg = -1
self.xml.get_widget("Passphrase").destroy()
win.destroy()
return msg
def on_key_pressed(self, widget, event):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment