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
0 answers

How can I print total clicked number of checkboxes with a function in tkinter?

I am trying to create a function inside a class and with this function, I want to calculate how many checkboxes clicked. #This function assesses number of clicked items in my class's list def badper(self): window=Tk() …
ugur
  • 33
  • 9
1
vote
0 answers

How to get the widget that is focused in when I focus out of another one? (in order to force focus avec a bind)

I have a table made of multiple entries in tkinter. When I change one entry I want to update all others. I have achieved this by binding all entries with a function that refreshes the table. This works fines as long as I do not focus from…
user16529208
1
vote
2 answers

Passing args to Tkinter Callback validating function in Python3, Is it possible?

I am a newbie on Python3 and trying tkinter for first time, I recently answered to Solving simple ODE system within tkinter GUI using https://www.geeksforgeeks.org/python-tkinter-validating-entry-widget/ tips. Now I am banging my head about how the…
pippo1980
  • 2,181
  • 3
  • 14
  • 30
1
vote
1 answer

Label Not Continually Updating Tkinter

I have read through several answers to similar topics but none of them are relevant to my situation, I am trying to display a list on a label and whenever the button is pressed to update the list the label should update as well but it only updates…
Reacher42
  • 31
  • 3
1
vote
1 answer

Key Bind Multiple Entry Widgets to One Function Which Updates Unique Variables

I have multiple tkinter Entry widgets, and I would like to record the value if the user hits enter or clicks the submit button. I am currently binding to definitions unique to each Entry widget like so: import tkinter as tk from tkinter…
Tyler B
  • 62
  • 10
1
vote
1 answer

Make the button enabled when text is entered in Entry widget on Tkinter

So I am trying to make the button enabled when text is entered in entry widget using tkinter however I don't think of an idea for it to work. My code is: def capture(): if e.get(): button['state'] = 'normal' e = Entry(root, font =…
Trojan
  • 39
  • 1
  • 7
1
vote
2 answers

Python Time Elapsed Not Displaying Accurately

I am trying to create a Tkinter GUI that records the time-pressed between buttons and then appends the tuple output to a list however it is recording the time difference as 1625044470.590308. I have no idea what this number means so if anybody…
Agarb
  • 111
  • 1
  • 8
1
vote
0 answers

How to get the list varible which is generated from the tkinter widget command function

I have python GUI code which creates list of indices. There is two buttons "Add" and "Remove", by clicking "Add" it adds the value from the entry widget and append into the index_list list, similarly with the "Remove" widget. I want to use this…
Aditya Rajgor
  • 953
  • 8
  • 14
1
vote
0 answers

Is there a way to search in sqlite date by more than Entry of tkinter (ignoring the blank entry)?

I created a tkinter connected to sqlite file, with Entries for search of workers data, for example: name, qualification, job. I need to search with more than Entry in the same time so I write for example: c.execute("SELECT *,oid FROM data WHERE name…
1
vote
1 answer

TypeError (python tkinter Entry)

from tkinter import * app=Tk() app.title("progress") app.geometry("800x500+365+120") q={'weigh':100,'goal':75,'now':86} #or 'now':93 def bar(): first=int(q['weigh']) achieve=int(q['goal']) today=int(q['now']) def num(n): …
1
vote
2 answers

Why is my StringVar not working? please take a look and tell me what I did wrong

import tkinter as tk import datetime import Inputs import os today = datetime.datetime.now() today = today.strftime("%Y%m%d%H%M%S") root = tk.Tk() root.geometry("500x600") root.title("General Examination of the Patient") bp =…
1
vote
0 answers

How to rewrite entry in Python Tkinter

I have a problem where to callbacks adding text to Entry without cleaning it and without overwriting: This two fuction is callback in button in tkinter, and when you using it - if adding on front. IDK why All code here:…
plaksy
  • 11
  • 2
1
vote
1 answer

Create text_box with Entry for a list - tkinter Python

I have a list out_list = ["item1",item2","item3",....] which I am trying to add text_box and Entry for each item as the following: But when I'm trying to get from the text box, text_box.get("1.0",'end-1c'), I am getting all of the list as one…
David
  • 111
  • 1
  • 2
  • 8
1
vote
1 answer

Python Tkinter: Can i do a calculation with the input of several Entries and display the result as text?

Okay so - I have under 24 hours of experience with programming - this is my second day - so please don't slaughter me. Yesterday I spend almost all day trying to figure this out, but all the concepts are still a bit slippery to me - I hope somebody…
Karim Loberg
  • 95
  • 1
  • 7
1
vote
0 answers

Tkinter event's widget attribute is not a widget

I'm trying to make all tkinter Entry objects map Control-C to a copy event (and similar defaults for other commonly used shortcuts). This works for most Entry objects, but fails in a strange way for a file dialog. A minimal example is below. I'm…
sasquires
  • 356
  • 3
  • 15