3 Commits

View File

@@ -76,7 +76,7 @@ def dropdown_changed(dropdown_var, user_entry, password_entry, server_path_entry
password_entry.configure(fg_color=non_disabled_entry_color) password_entry.configure(fg_color=non_disabled_entry_color)
user_entry.configure(fg_color=non_disabled_entry_color) user_entry.configure(fg_color=non_disabled_entry_color)
server_path_entry.delete(0, customtkinter.END) server_path_entry.delete(0, customtkinter.END)
server_path_entry.insert(0, "ftp://server/path::port or ftps://server/path:port") server_path_entry.insert(0, "ftp://server:port/path or ftps://server:port/path")
install_dir_entry.delete(0, customtkinter.END) install_dir_entry.delete(0, customtkinter.END)
install_dir_entry.insert(0, "./install-dir") install_dir_entry.insert(0, "./install-dir")
@@ -127,13 +127,14 @@ def get_config_inputs():
dropdown_changed(dropdown_var, user_entry, password_entry, server_path_entry, install_dir_entry) dropdown_changed(dropdown_var, user_entry, password_entry, server_path_entry, install_dir_entry)
dropdown.grid(row=0, column=1, padx=10, pady=5) dropdown.grid(row=0, column=1, padx=10, pady=5)
# Button to abort & close #
abort_button = customtkinter.CTkButton(input_window, text="Abort", command=lambda: input_window.quit(), fg_color="red")
abort_button.grid(row=5, column=0, padx=10, pady=20)
# Button to save & close # # Button to save & close #
save_button = customtkinter.CTkButton(input_window, text="Save & Close", command=lambda: close_input_window(input_window)) save_button = customtkinter.CTkButton(input_window, text="Save & Close", command=lambda: close_input_window(input_window))
save_button.grid(row=5, column=0, padx=10, pady=20) save_button.grid(row=5, column=2, padx=10, pady=20)
# Button to abort & close #
abort_button = customtkinter.CTkButton(input_window, text="Abort", command=lambda: input_window.quit())
abort_button.grid(row=5, column=2, padx=10, pady=20)
input_window.update() input_window.update()
input_window.mainloop() input_window.mainloop()