Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
Update Picocrypt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT authored Mar 23, 2021
1 parent 56c4f92 commit d8c564d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/unstable/Picocrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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("<Button-1>",
lambda e:showOutput(output.replace("/","\\"))
)

if platform.system()=="Windows":
status.bind("<Button-1>",
lambda e:showOutput(output.replace("/","\\"))
)
else:
status.bind("<Button-1>",
lambda e:showOutput(output)
)
# Reset variables and UI states
resetUI()
status["state"] = "normal"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d8c564d

Please sign in to comment.