mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2025-01-04 05:38:31 +00:00
Update Picocrypt.py
This commit is contained in:
parent
5e584f7cde
commit
bc450bd906
1 changed files with 7 additions and 3 deletions
|
@ -82,6 +82,9 @@ 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")
|
||||||
|
if platform.system()=="Darwin":
|
||||||
|
tk.configure(background="#edeced")
|
||||||
|
else:
|
||||||
tk.configure(background="#ffffff")
|
tk.configure(background="#ffffff")
|
||||||
tk.resizable(0,0)
|
tk.resizable(0,0)
|
||||||
|
|
||||||
|
@ -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,6 +1089,7 @@ def createRsc():
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
def prepare():
|
def prepare():
|
||||||
|
if platform.system()=="Windows":
|
||||||
system("sdelete64.exe /accepteula")
|
system("sdelete64.exe /accepteula")
|
||||||
|
|
||||||
# Close window only if not encrypting or decrypting
|
# Close window only if not encrypting or decrypting
|
||||||
|
|
Loading…
Reference in a new issue