Skip to content

Commit

Permalink
Update ipcom.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayad-Uddin-Tahsin authored Aug 27, 2023
1 parent ed1afa1 commit a4c6b0e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ipcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -213,7 +199,6 @@ def handle_entry_entry_event(event):
entry.insert(0, placeholder)
entry.bind("<FocusIn>", handle_focus_in)
entry.bind("<FocusOut>", handle_focus_out)
# entry.bind("<KeyRelease>", handle_entry_entry_event)
entry.bind("<Return>", handle_port_entry_event)
entry.place(x=118, y=72)

Expand Down

0 comments on commit a4c6b0e

Please sign in to comment.