mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2025-01-01 12:22:25 +00:00
Update Picocrypt.py
This commit is contained in:
parent
5e584f7cde
commit
bc450bd906
1 changed files with 7 additions and 3 deletions
|
@ -82,7 +82,10 @@ unknownErrorNotice = "Unknown error occured. Please try again."
|
||||||
tk = TkinterDnD.Tk()
|
tk = TkinterDnD.Tk()
|
||||||
tk.geometry("480x470")
|
tk.geometry("480x470")
|
||||||
tk.title("Picocrypt")
|
tk.title("Picocrypt")
|
||||||
tk.configure(background="#ffffff")
|
if platform.system()=="Darwin":
|
||||||
|
tk.configure(background="#edeced")
|
||||||
|
else:
|
||||||
|
tk.configure(background="#ffffff")
|
||||||
tk.resizable(0,0)
|
tk.resizable(0,0)
|
||||||
|
|
||||||
# Try setting window icon if included with Picocrypt
|
# Try setting window icon if included with Picocrypt
|
||||||
|
@ -934,7 +937,7 @@ def showOutput(file):
|
||||||
if platform.system()=="Windows":
|
if platform.system()=="Windows":
|
||||||
system(f'explorer /select,"{file}"')
|
system(f'explorer /select,"{file}"')
|
||||||
elif platform.system()=="Darwin":
|
elif platform.system()=="Darwin":
|
||||||
system(f'cd "{file}"; open -R .')
|
system(f'cd "{dirname(file)}"; open -R {pathSplit(file)[1]}')
|
||||||
system(f'cd "{rootDir}"')
|
system(f'cd "{rootDir}"')
|
||||||
else:
|
else:
|
||||||
system(f'xdg-open "{dirname(file)}"')
|
system(f'xdg-open "{dirname(file)}"')
|
||||||
|
@ -1086,7 +1089,8 @@ def createRsc():
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
def prepare():
|
def prepare():
|
||||||
system("sdelete64.exe /accepteula")
|
if platform.system()=="Windows":
|
||||||
|
system("sdelete64.exe /accepteula")
|
||||||
|
|
||||||
# Close window only if not encrypting or decrypting
|
# Close window only if not encrypting or decrypting
|
||||||
def onClose():
|
def onClose():
|
||||||
|
|
Loading…
Reference in a new issue