Commit 585c4647 authored by Heiko Reese's avatar Heiko Reese

Accept passwort on Enter

parent 3834fb2e
...@@ -21,7 +21,11 @@ class PasswordEntry: ...@@ -21,7 +21,11 @@ class PasswordEntry:
self.passentry.grid(row=0, column=1, sticky=W) self.passentry.grid(row=0, column=1, sticky=W)
self.toggleShow() self.toggleShow()
self.passentry.focus_set() self.passentry.focus_set()
self.passentry.bind("<Return>", self.reencodeOnReturn)
#self.toggle = Button(master, text="⚷")
#self.toggle.bind("<Button-1>", lambda a: self.passentry["show"] == "")
#self.toggle.bind("<ButtonRelease-1>", lambda a: self.passentry["show"] == "●")
self.toggle = Button(master, text="⚷", command=self.toggleShow) self.toggle = Button(master, text="⚷", command=self.toggleShow)
self.toggle.grid(row=0, column=2, sticky=W) self.toggle.grid(row=0, column=2, sticky=W)
...@@ -32,6 +36,9 @@ class PasswordEntry: ...@@ -32,6 +36,9 @@ class PasswordEntry:
# ask for input file # ask for input file
self.askInputFile() self.askInputFile()
def reencodeOnReturn(self, event):
self.reencode()
# check password while being typed in # check password while being typed in
def reencode(self): def reencode(self):
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment