diff --git a/src/unstable/Picocrypt.py b/src/unstable/Picocrypt.py index 4d633e3f..8f0a9b3c 100644 --- a/src/unstable/Picocrypt.py +++ b/src/unstable/Picocrypt.py @@ -321,7 +321,7 @@ def onDrop(e): # A frame to make password input fill width passwordFrame = tkinter.Frame( tk, - width=(443 if platform.system()=="Darwin" else 440), + width=(445 if platform.system()=="Darwin" else 440), height=22 ) passwordFrame.place(x=(17 if platform.system()=="Darwin" else 20),y=66) @@ -348,7 +348,7 @@ def onDrop(e): # A frame to make confirm password input fill width cpasswordFrame = tkinter.Frame( tk, - width=(443 if platform.system()=="Darwin" else 440), + width=(445 if platform.system()=="Darwin" else 440), height=22 ) cpasswordFrame.place(x=(17 if platform.system()=="Darwin" else 20),y=116) @@ -799,11 +799,16 @@ def start(): # A little hack since strings are immutable output = "".join([i for i in outputFile]) + # Bind the output file - status.bind("", - lambda e:showOutput(output.replace("/","\\")) - ) - + if platform.system()=="Windows": + status.bind("", + lambda e:showOutput(output.replace("/","\\")) + ) + else: + status.bind("", + lambda e:showOutput(output) + ) # Reset variables and UI states resetUI() status["state"] = "normal" @@ -1069,14 +1074,14 @@ def showOutput(file): # Version versionString = tkinter.StringVar(tk) -versionString.set("v1.10") +versionString.set("v1.11") version = tkinter.ttk.Label( tk, textvariable=versionString ) version["state"] = "disabled" version.config(background="#ffffff") -version.place(x=430,y=436) +version.place(x=(420 if platform.system()=="Darwin" else 430),y=436) # Dummy button to remove focus from other buttons # and prevent ugly border highlighting