From d8c564d163c1050f6384959bf30702bc3342a1db Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Tue, 23 Mar 2021 17:47:51 -0400 Subject: [PATCH] Update Picocrypt.py --- src/unstable/Picocrypt.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/unstable/Picocrypt.py b/src/unstable/Picocrypt.py index 4d633e3..8f0a9b3 100644 --- a/src/unstable/Picocrypt.py +++ b/src/unstable/Picocrypt.py @@ -321,7 +321,7 @@ passwordLabel["state"] = "disabled" # 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 @@ cpasswordLabel["state"] = "disabled" # 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 @@ credits.bind("",lambda e:webbrowser.open(source)) # 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