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
4
votes
1 answer

How can I make sure the content of a tkinter entry is saved on FocusOut?

I have an app that uses binding to automatically save the edits in an Entry to a list. There is no problem saving the Entry text when using TAB to navigate through the Entries or when I click on another Entry, but If I change the text on…
Alexandru Antochi
  • 1,295
  • 3
  • 18
  • 42
4
votes
2 answers

Python Tkinter Entry. I can't type Korean in to the Entry field

I am making a p2p chat program in Python 3 using Tkinter. I can paste Korean text into the Entry widget and send to the other user and it works. However, I can't 'type' Korean into the widget directly. Why is this happening? I am using Mac OS X…
whiteSkar
  • 1,614
  • 2
  • 17
  • 30
4
votes
2 answers

Python get focused entry name

I'm trying to make a entry value increase or decrease whenever the up or down arrow key is pressed. To do this i need to first find which entry that's in focus, and i'm trying to do that ".focus_get()". The problem is that i can't figure out how it…
RasmusGP
  • 4,696
  • 5
  • 21
  • 28
4
votes
4 answers

How to set font size of Entry in Tkinter

I am a newbie in Python and I would like to set font size in Entry widget. I tried to set parameter font=("Calibri",12), but nothing happened, font size is just like the default. Is there any way how to set it? Edit: from Tkinter import * root =…
Milan Skála
  • 1,656
  • 3
  • 15
  • 20
4
votes
1 answer

python tkinter entry command can't convert to int

Trying to get used to the tkinter gui but I'm running into a problem with setting up an input box. I wanted to make a simple number guessing program using Entry to input an integer and a button to submit the guess. I'm getting an str to int…
Sox Keep You Warm
  • 691
  • 1
  • 9
  • 14
4
votes
1 answer

What is the significance of the number 4 when one feeds a callback to the show argument of a Tkinter Entry Box?

Question Why is my random ascii character selector function outputting fours, and what is the significance of the number four in this context? Why am I not recieving an error message? Remember, the question is not about how to solve the issue, it is…
xxmbabanexx
  • 8,256
  • 16
  • 40
  • 60
4
votes
4 answers

Getting the textvariable out of a Tkinter Entry widget?

I'm trying to bind a function to my Tkinter root that reacts when the user presses return. Here's the code: def returnPressed(event): print repr(event.widget) master = Tk() master.bind("", returnPressed) myStringVar =…
Tekar
  • 105
  • 2
  • 8
3
votes
1 answer

TKInter widgets having different width even after setting same width

I am trying to build a small window in tkinter, but I observed that different widgets take on different widths even when set with the same width. Here's the output that I can see on running the code: The black widget in first row is an Entry widget…
KCK
  • 2,015
  • 2
  • 17
  • 35
3
votes
2 answers

How to insert something at the end of a entry in tkinter?

def inserter(entryblock, num): entryblock.insert(-1, num) I am making a calculator and whenever I click the number buttons on the calculator, it always inserts them at the beginning but I want to insert them to the end of the entry. How do I…
Crystallean
  • 125
  • 7
3
votes
3 answers

How can I check if an entry in tkinter has one or more zeros

I'm just starting programming. I'm want to do a simple Ohm's law calculator. I'm struggling to check if the entry is empty or if it has one or more zeros in it. How can I check if it has one or more zeros in it? from tkinter import * import math as…
Vondor
  • 33
  • 3
3
votes
5 answers

Python Tkinter Entry pad text

How could I pad the entry widget so it does not start writing right at the border of the widget? Visually, having a little space from the entry widget border. My progress: entry_widget.bind('', lambda f: entry_widget.insert(0, ' ')) That…
Programer Beginner
  • 1,377
  • 6
  • 21
  • 47
3
votes
0 answers

Resize Entry with window in Tkinter

I am using Tkinter and I want my elements to resize when the window resizes (only horizontally) I tried sticking to W+E but apparently this only works when the window is created but not when it's resized. Minimal example: from tkinter import Tk,…
user2261062
3
votes
2 answers

how increase font size in text widget?

When I increase the size of the font using following code, it also increase the size of the widget. Is it possitlbe to increase font size by keeping the size of the text widget constant? Thank You A11 = tkinter.Text(top, height=28,…
bibek
  • 167
  • 1
  • 4
  • 12
3
votes
3 answers

Updating a label from an entry field on button push with tkinter in Python 3.5.2

I am trying to create a window with a line label, an entry field, a current value label, and an "Update Value" button. Here is an example: This is what I have so far. I can get the entered value to print to console, but I can't seem to work out how…
Agent
  • 123
  • 2
  • 9
3
votes
2 answers

Python Entry Line Will Not Get Keyboard Input - Types in Terminal Instead

I have been working on a project over the last few weeks where I am interacting with an industrial robot through a wireless connection and using REST protocol through a Raspberry Pi and python. I am new to python but familiar with C++ so I am not…
1 2
3
88 89