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
1
vote
2 answers

How to delete the last character of text in canvas.create_text() in tkinter?

self.canvas_textbox = canvas.create_text(290, 250, text='SOME TEXT', anchor=NW, fill="lime") How to delete the last character of text that is from SOME TEXT, I have to detele the last T. I have tried the following code but it's delete the whole…
1
vote
1 answer

Add widgets in Tkinter treeview

I have created gui for entry using tkinter in tabular form. In this gui, I have used labels, Entry and Optionmenu. I can load and enter my data easily. But the problem is that there are hundreds of such records. Due to which (I think) tkinter gui…
jonny789
  • 323
  • 1
  • 8
  • 16
1
vote
1 answer

TKinter Entry validation not working after setting its StringVar

I have a TKinter entry widget where i want to validate the input, and everything works as expected. But when I set the StringVariable of the Entry widget the validation function is no more called. Can someone explain me this behavior? Here is an…
BanjoBenjo
  • 98
  • 8
1
vote
2 answers

Winfo_y does not return correct value

I am trying to create a custom entry widget in tkinter. When this entry has focus it should display a listbox right under the entry widget with some options to the user. When it loses focus the listbox should delete by itself. This is what I…
1
vote
2 answers

How to return a value of a function given as a command in tkinter

I've written a very simple code with python tkinter, it contains an input box. I'd like to keep the value inserted by the user to myself, in case I need to use it later. Here's the code: import tkinter as tk root=tk.Tk() …
Liana
  • 314
  • 5
  • 15
1
vote
1 answer

Empty Space Caused by Entry Widget in Tkinter

The checkboxes I use in my program have a large gap between checkbox 2 and 3 when the program is run. I figured out that this is caused by my entry widget as when I commented it out the gap between checkboxes 2 and 3 disappeared. I am unsure how to…
Jack
  • 44
  • 6
1
vote
1 answer

verifying data inside tkinter entry box. if its numeric or alpha or an email

from tkinter import * import os te=Tk() te.geometry('300x200') L1 = Label(text = "User Name").grid(row=1,column=0) E1 = Entry( te) E1.grid(row=1,column=2) L2 = Label(text="full Name").grid(row=2,column=0) E2 = Entry( te) E2.grid(row=2,column=2) L3 =…
anshul
  • 144
  • 2
  • 12
1
vote
1 answer

Python's Tkinter Entry not appearing on window

I am trying to make a window that would take an input through an entry and that would be either a web address or ip address and i would use a loop to update the text of a label to show the current ping every second. But I'm stuck at the very…
Jyotirmay
  • 513
  • 6
  • 22
1
vote
1 answer

when i try to create a text file the following error is thrown

This is the error i get when i run my code File "D:\talha\Documents\School\Computer\Programming\Caravan Park TKINTER\Tkinter Caravan.py", line 27, in Add_Customer with open(userFile, 'w')as details: PermissionError: [Errno 13] Permission denied:…
1
vote
1 answer

How can I center a placeholder text in an Entry with tkinter?

Here is the code: from tkinter import * class EntPlaceHold(Entry): def __init__(self, master=None, placeholder="placeholder", color='#610B21'): super().__init__(master) self.placeholder = placeholder …
capille
  • 13
  • 4
1
vote
2 answers

Possible to execute a command from Tkinter Entry widget?

I have a tkinter GUI which includes an Entry Widget (tk.Entry). At the moment this displays a numeric value, which can be incremented up/down by a couple of tkinter Buttons. In addition to incrementing the value displayed in the Entry Widget,…
McKendrigo
  • 39
  • 1
  • 5
1
vote
0 answers

Why can I not type in my Tkinter entry field

I'm creating a simple form that allows the user to create cooking recipes and stores them in xml format. So far things have gone great until I added a text entry widget to the form, to allow the user to put a short note in there. The text entry…
jzakilla
  • 7
  • 6
1
vote
2 answers

What would be the best way for a user to be able to view a list of strings and edit those strings in a tkinter window?

The title probably makes my goal sound a little confusing since I wasn't sure of the best way to word it but I'd like to add the ability to edit a list of strings, allow a user to edit them, and then save them to the program that I'm currently…
1
vote
1 answer

python-entry widget Place change is not going to happen and Label creating problem

the code is presented below but not relocated entry widget place, label is also not created. before entered this code [ e1.grid(row=1,column=1) ] the program working perfectly, after entering the code not working, how to handle this problem.. the…
1
vote
2 answers

Python - I want two entry widgets Sum without using button

I do not understand how to do this. I need to sum of two entries and then put the sum into another entry widget without any Buttons. Example one from tkinter import * def…