Skip to content

Commit

Permalink
added warning to relaunch app to changes to take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaisakhkm2625 committed Sep 8, 2024
1 parent 2101124 commit e53daec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from settings import load_settings, save_settings



# Function to create the PyTinker GUI for settings
def create_settings_gui(config_file,app_name):
settings = load_settings(config_file,app_name)
Expand Down Expand Up @@ -85,7 +84,11 @@ def save():
save_settings(config_file, settings)
root.destroy()

Button(root, text="Save", command=save).grid(row=5, column=0, columnspan=2, pady=10)
warning_lbl = Label(root, text="please relaunch app after saving for changes to take effect")
warning_lbl.grid(row=10, column=0, columnspan=2, pady=10)
warning_lbl.config(fg="red")

Button(root, text="Save", command=save).grid(row=11, column=0, columnspan=2, pady=10)

root.mainloop()

Expand Down

0 comments on commit e53daec

Please sign in to comment.