tkinter-entry

How do I get the Entry's value in tkinter?

How do I get the Entry's value in tkinter? Question: I’m trying to use Tkinter’s Entry widget. I can’t get it to do something very basic: return the entered value. Does anyone have any idea why such a simple script would not return anything? I’ve tried tons of combinations and looked at different ideas. This …

Total answers: 2

tkinter python entry height

tkinter python entry height Question: I’m making a simple app just to practice python in which I want to write text as if it were Notepad. However, I can’t make my entry bigger. I’m using tkinter for this. Does anybody know how to make the height of an entry bigger? I tried something like this: …

Total answers: 8

Tkinter entry validation: Check for a valid color or portion of a color

Tkinter entry validation: Check for a valid color or portion of a color Question: Recently, I have found that the validation option of Entry widgets is very useful (see this question). I recently tried to write a validation command that would verify that the user was typing a hex code, or a named color. I …

Total answers: 2

Why is Tkinter Entry's get function returning nothing?

Why is Tkinter Entry's get function returning nothing? Question: I’m trying to use an Entry field to get manual input, and then work with that data. All sources I’ve found claim I should use the get() function, but I haven’t found a simple working mini example yet, and I can’t get it to work. I …

Total answers: 6

Undo and Redo in an Tkinter Entry widget?

Undo and Redo in an Tkinter Entry widget? Question: Is there a way to add undo and redo capabilities in Tkinter Entry widgets or must I use single line Text widgets for this type of functionality? If the latter, are there any tips I should follow when configuring a Text widget to act as an …

Total answers: 4

Make Tkinter Entry widget readonly but selectable

Make Tkinter Entry widget readonly but selectable Question: Is there any way to make the Tkinter Entry widget so that text can be highlighted and copied, but not changed? Asked By: rectangletangle || Source Answers: Use the state option "disabled" (all lowercase): Use this option to disable the Entry widget so that the user can’t …

Total answers: 1