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 ask user for integer input using Python tkinter

I need to ask a user for an integer value and tried a=n.get() and then a=int(a) but it doesn't work as expected. Here the code I used: def selectparamter(): window3= Tk() window3.title('choosing parameters ') …
1
vote
1 answer

Why binding a key to Entry widget doesn't work?

HI guys i'm trying to simply create a text space that replaces the letters or any input into asterisks just like happen with the regular passwords. But why if i bind any key to the function "text" if i press any key the first input is empty? Becuase…
1
vote
1 answer

Tkinter entry cant be deleted when in function

Im having difficulties with deleting content by a function when the entry was made by another function. def recipe_add(): recepty_add_window = Toplevel() recepty_add_window.geometry("400x400") name_entry_label=Label(recepty_add_window,…
Vondrys
  • 13
  • 3
1
vote
2 answers

How to make a tkinter entry widget for email only

I am building a simple login system using Tkinter in python, I want to take user email id by validating the user type value should be a email not anything else. How to make that, please any one tell me. This is the simple version of my code, from…
Kumara
  • 480
  • 1
  • 4
  • 13
1
vote
0 answers

Is there a tkinter function that creater a "scroll" for continuous evaluation

I'm writting a evaluation interface in python (tkinter) and I want to put an toll like a scrollbar that allow the user to put the scroll in a desired position in the range of the bar, and after that I want to quantify this position to save the…
Toniato
  • 11
  • 2
1
vote
0 answers

Strange Error: _tkinter.TclError: bad window path name ".!entry"

I'm creating Wordle in Python, and I'm running into a strange error. entry_box = tk.Entry(root) entry_box.pack() This is the entry box. It's where the player inputs their word. def play_again(): global WORDS global WORD WORD =…
1
vote
1 answer

Tkinter displaying output in a entry box using when using nested classes

So the problem is that when using the second window (which you navigate to using the next page button). When I enter the 8-bit binary numbers in each box the premise is that it should add them together and display them in the labeled added binary…
Hopvine
  • 65
  • 4
1
vote
0 answers

Tkinter, issues with image disapearing and "buttons" not capturing click

probalby those are two separate issues, but i can not find help for any of them I am doing an basic interface with TKINTER that work both on PC and raspberry with LCD screen, plenty of lines to raise this. Interface is basic, just a image with some…
ceduzy
  • 11
  • 2
1
vote
1 answer

Tkinter Entry widget is returning an empty list when used in a toplevel window

I am attempting to open a new window when the New Window button is pressed in the main "root" window. This currently works and does indeed open a second window. In the second window I want to ask the user for an input and then this input will be…
flossy
  • 15
  • 5
1
vote
1 answer

Tkinter need to update a box based on whats typed in another box on another page

I have some pages in a container, and I want the name box that the user is allowed to type into from one of my pages to update and be displayed on the other page. This is not a variable in all my pages, this is only something I want displayed in 1…
Lzypenguin
  • 945
  • 1
  • 7
  • 18
1
vote
1 answer

How to check the type of tkinter-widget-objects

I wanna create a simple GUI for a research project. For this I have plenty of widgets and I want to check what their type is. Lets take the entry-widget as an example. I have entries, which look like this: entry_modelling_script_folder =…
Tybald
  • 167
  • 1
  • 1
  • 12
1
vote
1 answer

How to access Entry field value in root window from Toplevel window?

I have 2 different files. One has the root window code and the other has the top-level window code in a function that is called by a button in the root file. I want to insert in the entry_take entry field in the top-level window the value I put in…
Devansh10
  • 69
  • 8
1
vote
1 answer

Empty data in SQL table

I am learning Tkinter and have made a program (just for practice) which takes user input in Entry field and save what the user has entered in a MySQL database by clicking submit button. Code: from tkinter import * import tkinter import…
1
vote
1 answer

I cannot get the value of my Entry in Tkinter | Python

So I am making this GUI app with tkinter in which we can signup and login and save our data. I am having problem with getting the value from the Entry widget in my signup part. from tkinter import * ##### CONSTANTS ############ m =…
Aaseer
  • 117
  • 10
1
vote
0 answers

_tkinter.TclError: bad listbox index "": must be active, anchor, end, @x,y, or a number with entry.select_adjust(END)

I have a problem with entry.select_adjust(). The code is like below. The error is occurred at self.rename_entry_mpf.select_adjust(END). If I delete this line, the program works properly. But I want to highlight the file name when I click the file to…