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

Trace Tkinter variable with a delay

I would like to filter dataset with a delay. I have this basic layout: import tkinter as tk def filter(*args): print('entry callback', 'changed %s' % str(args)) print('limit result set with', filter_input.get()) if __name__ ==…
Kube Kubow
  • 398
  • 1
  • 6
  • 18
1
vote
0 answers

Checking an external file with an entry within tkinter [login page]

Im presently working on a school assignment which requires the user to have to login, using credentials from an external file- logininfo.txt - and then allows the user to play a dice game, but Im having difficulties setting up tkinter to handle the…
Lasagne
  • 11
  • 2
1
vote
1 answer

Tkinter - passing 3 user input variables to functions to search a csv file via a pandas query

What I am trying to do: The user enters the file path to a csv, a field name, and then a keyword/phrase and clicks submit....what is returned are the results of a pandas query structured using their input which reads from the csv they want to…
Phil C
  • 25
  • 1
  • 9
1
vote
3 answers

Tkinter can't open image

for some reason, Tkinter can't open my image. If I don't add from tkinter import * it shows error message as: Error Message without from tkinter import *: C:\Users\NG>python e:/PythonTkinter/app.py Traceback (most recent call last): File…
1
vote
0 answers

How to generate multiple characters at once in Tkinter Entry widget?

I am in the process of learning python and tkinter. I am trying to generate multiple random chars with a click of a button. I have gotten most of it but I am only able to generate one char at a time. import random from tkinter import * root =…
GoldenK
  • 13
  • 2
1
vote
0 answers

Auto-resizing Tkinter Entry needs initial width

I discovered a simple way to make an auto-resizing Tkinter Entry. As you type or delete characters, it grows or shrinks to fit its contents exactly. There are other ways to approximate this effect, but not as simple, and this one makes the Entry fit…
Luther
  • 514
  • 4
  • 17
1
vote
1 answer

How to open a new window in Tkinter if my login username and password are correct in my login window?

I want to open a new window once my username and password are correct in my first login window, my login window file is named main.py and i have defined a function to validate my username and password for i in c: if user == i['USUARIO'] and…
Paul
  • 83
  • 1
  • 8
1
vote
1 answer

Unable to close the popup for Tkinter after entering the correct password

Unable to close the popup for Tkinter after entering the correct password. After entering the correct password the GUI is not closing. from tkinter import * root = Tk() e = Entry(root, width=50) e.pack() def myClick(): password = "sunny567" …
user13510399
1
vote
2 answers

Callback for tkinter Entry only executes once

I want to have a function called, each time when an entry in my tkinter window is changed. Because I don't want the function to be called while the used is still typing, I chose "focusout" for the validate attribute. For clarification, I got the…
Alex V.
  • 180
  • 2
  • 12
1
vote
0 answers

How do I use grid system on entry widget affected by .get()

my code: import tkinter as tk from tkinter import * truth = "" us = "" uss = "" root = Tk() s = Label(root, text = ".") s.grid(row = 1, column = 1) wel = Label(root, text = "whats your email") wel.grid(row = 1, column = 5) inp =…
Evan Hall
  • 9
  • 1
1
vote
0 answers

Why can't I type anything in my entry box after a messagebox was run?

My entry box won't work, and I don't know why... If I remove the messagebox from the script; I can type things in my entry box, but if I put a messagebox in the script again, the entry box won't work. Here is my code: import…
NoteSalad
  • 11
  • 5
1
vote
0 answers

How to know current cursor location out of multiple Entry widgets in tkinter

'I am writing a GUI application in tkinter, I have multiple entry widgets, and I am trying to assign a menu with copy and paste option, I am having trouble with paste function. To paste the text from clipboard I need to know the current cursor…
1
vote
2 answers

Why does tkinter Entry widget become inaccessible to user actions

This is a similar question so I think I'm in the right forum. I have a tkinter app that counts 'steps' for something. After about 2 billion +1 additions (close to the size of a maximum 32-bit int), the count displayed in an Entry widget stops being…
1
vote
1 answer

Why is frame not displaying on tkinter

I am trying to build 2048, I made the GUI with no problem, but it only displays the cells, and not the score frame I created. Looking over it, i cannot find anything wrong myself. I believe i properly created the frame and label, and I think it is…
beatmaister
  • 375
  • 1
  • 14
1
vote
0 answers

Output printed before function execution

Please help me. In the code below, text box and other labels got placed before execution of the functions forcedefiner() and resultantCalc(): def Resultant(): L = tk.Label(w,text="Enter the number of forces :",fg="black",font="none 20") …
master tj
  • 11
  • 1