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

How can I get the data (DoubleVar) from multiple Tkinter Entry boxes and save them to a .dat file and retrieve them later to repopulate said boxes

First let me say brand new here and brand new to codeing The whole idea I'm trying to get done is have a list of Parameters that can be saved by the user and used later with out having to change the code I have a bigger program I am working on, but…
1
vote
0 answers

Python - Custom tkinter - component.setfocus() don't work with customtkinter component like CTkEntry

I have this code and focus dont work with customtkinter from tkinter import * import customtkinter as ctk import sys if len(sys.argv) > 1: print("Tk Customized from Tom") win = ctk.CTk() win.geometry("750x250") text =…
Rick
  • 92
  • 6
1
vote
1 answer

Some letters cannot be detected while typing in tkinter's input widgets

Apparently some letters can't be typed in Tk's input widgets such as Tk.Text, Tk.Entry. When I try to type some Turkish letters, they can't be detected. But when I first type in Notepad then copy paste into the widgets or by using the insert…
duruburak
  • 181
  • 14
1
vote
0 answers

GUI for Extractive Summarization using Tkinter

I'm trying to build the GUI in python using Tkinter for an Extractive Summarization program, that takes url and word count as input parameters to generate the summary of text retrieved from Webpage. The following is the code of the summarizer in…
1
vote
1 answer

TTK Enty validation issue

I am writing my very first GUI app with Py and Tkinter (Ttkinter). I want to be sure that the user can write only digits, "," and "." in the entries field. So far I did this but I have a couple of issues: I am not able to make it accept "," and…
1
vote
1 answer

Reset button to remove all user input data

I'm having a problem with the "Clear Data" Button I created since I'm new to Tkinter and if anyone can help me clear the user data input once I click the button. Thank you in advance! Thank you in advance! Thank you in advance! Thank you in…
1
vote
1 answer

Tkinter: assigning entry to a variable returns None

I am getting None as name and age from the entry of Tkinter and I can't make it work. Please, what is wrong? The following code is identical with the one used in this tutorial: from tkinter import * from tkinter import Entry main_window =…
1
vote
1 answer

python3 tkinter entry widget flash green for ~1 sec without blocking ongoing animation?

everything is working for now but I need to signify good input by flashing the entry box green for ~0.5 sec without blocking the ongoing animation. I create an entry box using the following code ```python p = tkinter.Entry(master=root,…
Saqster
  • 119
  • 1
  • 1
  • 8
1
vote
1 answer

Python: I'm trying to get a text entry box to replace a button with tkinter but the destroy commands don't seem to work

I'm a complete beginner at Python and am trying to make an interactive project with what I'm writing. To start off, here's an example of what I'm doing. from tkinter import * window = Tk() window.title("I am a title") …
ZionWario
  • 11
  • 2
1
vote
2 answers

Python tkinter Entry Function not saving input into variable

I am trying to use tkinter to have a user input variables to pass it into a function. The problem is , the input from the user is not being assigned to the actual variable for whatever reason. root = Tk() root.geometry("600x300") MainWindow =…
MoMo
  • 13
  • 3
1
vote
0 answers

Python / Tkinter Event in a For Boucle

I am doing a whiteboard in Tkinter to draw and animation. I tried to make a system to change color using the matplotlib.colors.CSS4_COLORS palette: row = 0 col = 0 color_list = sorted(mcolors.CSS4_COLORS.values(), key=lambda x:…
1
vote
3 answers

Tkinter entry widget input are written backwards

I am trying to make a simple calculator, I am using an entry widget to display the numbers, and buttons to type the numbers. When I type numbers using the buttons, (btn1, btnadd, btn2), it should be like this in the entry widget 1+2 instead it is…
1
vote
1 answer

Tkinter entry box disable spaces

Can you block the user from using spaces in an entry box in tkinter? Its for creating a filename, so if they put spaces it won't work.
hastur
  • 13
  • 5
1
vote
0 answers

Python tkinter define multiple tk.Entry() as strings

(Edit: Final working code below!) I have been trying to do a tkinter text box with three inputs at the beginning of a code. My main objective is to retrieve these three inputs as strings, which I would be able to integrate with the rest of the code…
mmurer
  • 15
  • 3
1
vote
1 answer

Why I can't pass a tkinter entry value between two python 3 scripts?

I don't understand the reason why if I try to pass a tkinter entry's value between two python scripts, I get '!entry' instead the value. First script: from tkinter import * w=Tk() def send(e): import…
Tommy
  • 101
  • 8