Update Picocrypt.py
This commit is contained in:
parent
ee5eeacd7b
commit
0f39ffb0ee
|
@ -75,7 +75,7 @@ strings = [
|
||||||
"Securely erase and delete original file",
|
"Securely erase and delete original file",
|
||||||
"Securely erasing original file(s)...",
|
"Securely erasing original file(s)...",
|
||||||
"Output file already exists. Would you like to overwrite it?",
|
"Output file already exists. Would you like to overwrite it?",
|
||||||
"",#14
|
"The input file's metadata is corrupted.",
|
||||||
"Prevent corruption using Reed-Solomon",
|
"Prevent corruption using Reed-Solomon",
|
||||||
"Error. Folder(s) and/or file(s) are empty.",
|
"Error. Folder(s) and/or file(s) are empty.",
|
||||||
"Unknown error occured. Please try again.",
|
"Unknown error occured. Please try again.",
|
||||||
|
@ -98,19 +98,22 @@ ThemedStyle(tk).set_theme("arc")
|
||||||
try:
|
try:
|
||||||
from ctypes import windll
|
from ctypes import windll
|
||||||
windll.shcore.SetProcessDpiAwareness(0)
|
windll.shcore.SetProcessDpiAwareness(0)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Try setting window icon if it exists
|
# Try setting window icon if it exists
|
||||||
try:
|
try:
|
||||||
try:
|
# PyInstaller bundles files in _MEIPASS
|
||||||
# PyInstaller bundles files in _MEIPASS
|
from sys import _MEIPASS
|
||||||
from sys import _MEIPASS
|
favicon = tkinter.PhotoImage(file=pathJoin(_MEIPASS,"key.png"))
|
||||||
favicon = tkinter.PhotoImage(file=pathJoin(_MEIPASS,"key.png"))
|
|
||||||
except:
|
|
||||||
# PyInstaller not used, load from same directory
|
|
||||||
favicon = tkinter.PhotoImage(file="key.png")
|
|
||||||
tk.iconphoto(False,favicon)
|
tk.iconphoto(False,favicon)
|
||||||
except:
|
except:
|
||||||
pass
|
try:
|
||||||
|
# PyInstaller not used, load from same directory
|
||||||
|
favicon = tkinter.PhotoImage(file="key.png")
|
||||||
|
tk.iconphoto(False,favicon)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Dummy button used for removing ugly highlights
|
# Dummy button used for removing ugly highlights
|
||||||
dummy = tkinter.ttk.Button(tk)
|
dummy = tkinter.ttk.Button(tk)
|
||||||
|
|
Loading…
Reference in New Issue