Questions tagged [tkinter-entry]

Tkinter Entry refers to a type of widget used in Tkinter (a Python standard GUI package), called the Entry widget, used to enter or display a single line of text. Not to be confused with the Text widget which is used to enter multiple lines of text. Use this tag for questions related to the Entry widget.

Tkinter Entry refers to a type of widget used in Tkinter (a Python standard GUI package), called the Entry widget, used to enter or display a single line of text. Not to be confused with the Text widget which is used to enter multiple lines of text. Use this tag for questions related to the Entry widget.

1335 questions
2
votes
1 answer

Updating entry widget using text from onscreen keyboard in tkinter

I want to run my code on raspberry pi which has a touchscreen attached to it. The GUI is made using Tkinter and I want to pop up the system onscreen keyboard when the entry is focused. Here is my current code: For binding the entry widget with…
harpratap
  • 365
  • 6
  • 12
2
votes
1 answer

Set tkinter Entry default value

I'm developing a script that will build GUIs automatically after reading a python script. I'm having problems in getting the Entry objects that I build to accept a default value. I pass my method a dictionary (arg) which contains a default value…
WRJ
  • 617
  • 3
  • 9
  • 19
2
votes
4 answers

tkinter Entry height

I tried textEntry = Entry(root, width=115, textvariable=text, height=12) but I got an error invloving the height. Then I tried using the Text widget: textEntry = Text(root, width=115, textvariable=text, height=12) but I got an error involving…
jjguidry
  • 43
  • 1
  • 1
  • 9
2
votes
1 answer

Using validation on text entry box

I am trying to set up validation on text entry boxes. Three of the boxes need to only accept integers and one text as a postcode. I am not sure whether to do this in a function previously defined or when the entry boxes are created. Also how would i…
V.Bon
  • 71
  • 1
  • 1
  • 11
2
votes
2 answers

entry does not respond correctly to buttons' binding in python

I'm trying to program a calculator in python for a while now and there is a problem with my entry that I can't solve it although I don't see any problem with it. so here is an example for my code: from Tkinter import * window…
2
votes
2 answers

How to change a entry widgets border color in Python Tkinter

I am working on a program that has a entry widget. And when the user clicks a button and that entry widget is empty then the program will change the border color of it to red. But when I try the border just stays the same color, which is black. Here…
user4429937
2
votes
3 answers

tkinter: can't enter into entry widget

I don't understand why the entry boxes under rackGUI.py in my code are static/won't allow anything to be entered. I believe all the Entry objects are instantiated correctly. I specified the textvariable as instances of the StringVar(). My gut tells…
user3761743
  • 145
  • 3
  • 14
2
votes
1 answer

How to store values from an Entry widget for loop in tkinter?

This should be a very very simple problem. I'm making a GUI in which I have multiple entry widgets... about 30 or so all in one column. Instead of making each box one by one it seems like a better idea to just generate the widgets with a loop.…
Dr. Toboggan
  • 555
  • 1
  • 6
  • 9
2
votes
3 answers

Entry Tkinter is not allowing to erase data if selected all and pressed delete or backspace button

I have written a code for entry widget which doesnot allow alphabets and limits the number of digits to 7. But i am not able to select all in the entry box and delete them using delete or backspace keys, could somebody help me on this. My code…
D_T
  • 33
  • 4
2
votes
1 answer

Binding a lambda function to multiple Tkinter Entry widgets created with For loop

I am attempting to bind a function to multiple Entry widgets in Tkinter. I populated my frame with many Entry widgets in a for loop. To bind a function to an Entry widget that was created using a for loop, I thought I could do something like the…
KidSudi
  • 460
  • 2
  • 7
  • 19
2
votes
0 answers

Python TextBox entry Hint(Invisible text)

I am trying to create a text box with a hint inside of it. Like in the picture below. I tried using Hint and else but it would not work. master = Tk.Tk() # Open up GUI connection master.title('Program Application') Label(text='Correct Range for…
user2837162
2
votes
1 answer

How do I store a value entered on a Tk entry widget in a variable

When someone puts something into the GUI entry field I want that whatever they put into the entry box to be stored in a variable. Also the pound sign does not show up when I run the program, Why is this? from Tkinter import * import…
40_WPM
  • 43
  • 1
  • 5
2
votes
4 answers

Tkinter Listbox with Entry

Is there a way to have the items of a Tkinter Listbox be Entry Widgets? The result would be that you could dynamically modify the text in an Listbox entry. If your Listbox looks like: -------- | Apples | | Pears | | Oranges | --------- then…
en_Knight
  • 5,301
  • 2
  • 26
  • 46
2
votes
1 answer

Set maximum length of data in ttk.entry and limit to integer only

I am wondering how you can set the maximum amount of characters allowed into a TTK entry field. I also want to limit the entry to type integer only, seem to not be finding much online. Anyways here is my code: from tkinter import * from tkinter…
user1978826
  • 203
  • 1
  • 9
  • 14
2
votes
1 answer

Tkinter Disable several Entry with checkbutton

With Python 2.7, I would like to turn the state of an "Entry" widget to normal/disable thank to a checkbutton. With the help of this question Disable widget with checkbutton?, I can do it with 1 checkbutton and 1 Entry #!/usr/bin/env python2.7 # -*-…
ericc
  • 741
  • 3
  • 8
  • 19