Skip to content

Commit

Permalink
Merge pull request #21 from WhenLifeHandsYouLemons/v1.6.0
Browse files Browse the repository at this point in the history
v1.6.0
  • Loading branch information
WhenLifeHandsYouLemons authored Feb 19, 2024
2 parents f98a286 + 6a73f13 commit 179b8f0
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 235 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

*.bsdesign
*.spec
17 changes: 17 additions & 0 deletions Encryptext.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ root.iconbitmap(getTrueFilename("app_icon.ico"))
Variables
"""
debug = False
# UPDATE MODE HERE
update = False# UPDATE MODE HERE

save_location = ""
file_extension = ""
Expand Down Expand Up @@ -513,6 +515,18 @@ def openPreferences():

pref_window.mainloop()

def update_menu(Event=None):
messagebox.showinfo("Update Encryptext", "1. Run the updater\n2. When it asks for the old enryption keys, copy and paste the ones shown in the text editor window.\n\nClick 'Ok' to view the keys.\n\nDO NOT SAVE THE DOCUMENT WITH THE KEYS.")

key = encrypt_key.decode()

# Add the needed strings to the box
textbox.delete("1.0", tk.END)
textbox.insert("1.0", f"Encryption Key: {key}\nFormat Item Separator: {format_item_separator}\nFormat Separator String: {format_separator}\nFormat String: {format_string}")

# Enter viewing mode so that the string can't be accidentally changed
viewingMode()

def about_menu(Event=None):
messagebox.showinfo("About Encryptext", "Encryptext can do what Notepad does, and more. You can edit, format, and encrypt files securely, while also editing regular files with ease.\n\n Free for everyone. Forever. ❤")

Expand Down Expand Up @@ -741,6 +755,9 @@ root.bind_all("<Alt-b>", bold_text_style)
textstylemenu.add_command(label="Italic", accelerator="Alt+I", command=italic_text_style)
root.bind_all("<Alt-i>", italic_text_style)

if update:
helpmenu.add_command(label="Update Encryptext", command=update_menu)

helpmenu.add_command(label="About Encryptext", command=about_menu)

helpmenu.add_command(label="Encryptext on GitHub", command=documentation)
Expand Down
File renamed without changes
Binary file not shown.
24 changes: 0 additions & 24 deletions installer_creator_linux.py

This file was deleted.

6 changes: 2 additions & 4 deletions installer_creator_windows.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from os import system
import PyInstaller.__main__

version = "1.5.1"
version = "1.6.0"

# Creates an executable file
PyInstaller.__main__.run([
'installer_windows.py',
'--onefile',
'--clean',
'--log-level',
'INFO',
'ERROR',
'--icon',
'installer_icon.ico',
'--add-data',
Expand All @@ -25,7 +25,5 @@

# Removes the "build" folder
system("rmdir /s /q build")
# Removes the "installer_windows.spec" file
system("del installer_windows.spec")
# Removes the "dist" folder
system("rmdir /s /q dist")
165 changes: 0 additions & 165 deletions installer_linux.py

This file was deleted.

Loading

0 comments on commit 179b8f0

Please sign in to comment.