I am messing around with tkinter for the first time and have a question. Is there a way to encode tkinter entry fields? Here is my code:
my_username = Entry(window,width=10)
my_username.grid(column=1, row=0)
#a few lines that have nothing to do with username
username = my_username.encode('utf-8')
And here is the problem:
Traceback (most recent call last):
File "project.py", line 34, in <module>
username = my_username.encode('utf-8')
AttributeError: 'Entry' object has no attribute 'encode'
Is there a proper way to encode an entry field? Thanks!