diff --git a/ipcom.py b/ipcom.py index 5eb45a7..94d2c1b 100644 --- a/ipcom.py +++ b/ipcom.py @@ -177,20 +177,6 @@ def validate_entry(text): save_button.place(y=125) save_button.config(state=tk.DISABLED) return False - - def handle_entry_entry_event(event): - entry = event.widget - text = entry.get() - if ":" not in text: - save_button.config(state=tk.DISABLED) - else: - port = text.split(":")[1] - print(repr(port)) - if port == "": - return - elif int(port) < 0 or int(port) > 65535: - return - save_button.config(state=tk.NORMAL) window = tk.Tk() positionRight = int(window.winfo_screenwidth()/2 - 400/2) @@ -213,7 +199,6 @@ def handle_entry_entry_event(event): entry.insert(0, placeholder) entry.bind("", handle_focus_in) entry.bind("", handle_focus_out) - # entry.bind("", handle_entry_entry_event) entry.bind("", handle_port_entry_event) entry.place(x=118, y=72)