To expand knowledge, I decided to start a new programming language, Python, and I caught the following situation, I have a screen with some elements and a textbox of type Entry
.
To set the text box, I used the following code:
self.form = Entry(self.frame2)
self.form.pack()
I've given a basic search, however, the staff changes Entry
to Text
and sets width
and heigth
. I tried to use it, however when I use form.get()
to capture the text, an error appears:
TypeError: get () missing 1 required positional argument: 'index1'
Would you like to know how to set width and height of Entry
?