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
-2
votes
2 answers

The tkinter .get metho d is not working properly

I am trying to make a formula calculator for a school project. I am trying to use the .get tkinter method to get what is in an Entry. It always sends an error. I don't want to write it into a class though. This is not the final code. from tkinter…
-2
votes
1 answer

Tkinter : wait for user click

How can I spawn a window, and halt the execution of the GUI until this window is closed by the user?
AM93
  • 45
  • 7
-2
votes
2 answers

Entry Widget: Storing It In Variable

I wanted to store data from Entry to an variable. So I did this: main = Tk() main.title("Players Names") var1 = StringVar() var2 = StringVar() Label(main, text="Player One: ").pack(side=LEFT) e1 = Entry(main,…
-2
votes
2 answers

How to store Entry as a variable that can be used in an equation to have the result printed in label with tkinter

I am trying to take entry from an entry boxes and use them in an equation. Basically it is Entry_one - Entry_two * entry_three / 12. But I cant seem to figure out how to do this. To make it more clear here is the working python code: a =…
-2
votes
1 answer

How to make a tkinter entry default value permanent

I am writing a program in python that will take in specific formats, a Phone number and dollar/cent values. How can I make tkinter have default value which is permanent, not deletable. For example (XXX)-XXX-XXXX? basically you can add an entry to…
Amao
  • 1
  • 1
-2
votes
1 answer

returning a string from askopenfilename() to a entry box

I have seen many postings on the use of askopenfilename(), however I still can't seem to find anything to help me display the full file path in an entry box once I have selected said file. below I have included where I have left off. from tkinter…
user3362618
  • 29
  • 1
  • 1
-2
votes
1 answer

How do I create a text file from user input in python?

In my program the user is asked for their Name, Surname and High School Class. At the the end of the program there is an if statement and if the condition is met then I would like to create a file which will print these variables as well as a…
user3056786
  • 89
  • 2
  • 10
-3
votes
1 answer

How to resolve image "pyimage16" doesn't exist in tkinter

Can anyone pls suggest how to get rid of the following error msg i am getting while trying to add background image to tkinter window. i have tried every possible thing i could but still no luck.Also, is it possbile to provide screenshot in output…
-3
votes
2 answers

How can I store the value of an entry to b used later

I want to make a system to calculate the salaies of employee using OOP and tkiner My problem is how to store the value of an entry to be used later
-3
votes
1 answer

Tkinter Not Showing image in Label

This is my code: import tkinter as tk win=tk.Tk() class loadfileclass(): filenamevar='' data='' try: filenamevar=tk.StringVar() fname=filenamevar.get() filenamevar.set("") mainfile=open(str(fname),"rb") …
Xephonine
  • 49
  • 7
-3
votes
1 answer

How I can solved this name is not defined

I want to make the program that I made can run i make code like this def cafe_food(self): friedrice_items = tk.Entry(F_FItems) friedrice_items.config(width=7, borderwidth=4, relief="sunken", font=("calibri", 10,"bold"),foreground="white",…
-3
votes
1 answer

in tkinter , how should I command a button to enter its text in the selected entry

In tkinter, how should I command a button to enter its text in the selected entry import tkinter as tk tk.Entry(master, width=20,columnspan=2).grid(row=0,column=0) tk.Button(master,command=?)
-3
votes
2 answers

taking an integer value from an entry widget in tkinter

I wrote some simple code to describe my problem: I want to take an integer value from an entry to use it later.I tried also to use a spin box. here is my code: from tkinter import* …
user13250708
-3
votes
1 answer

Python: get() is not working on tkinter python

Tkinter Python 3.x Here is my code def enter(): if w.get() == 777: messagebox.showinfo("Spinbox","The Spinbox has max number") else: messagebox.showinfo("Spinbox","Your number " + w.get() + " is not max.") root = Tk() w =…
C.Flance
  • 17
  • 1
  • 5
-3
votes
1 answer

Python/tkinter: Adding an Entry widget hides my canvas items

For a game I'm making, I need the user to input data, and I want to call a method that adds a little Entry box to my GUI (to get the user's name), but when I try to do so the Entry widget basically masks all other things and makes them disappear.…
Ryhun
  • 3
  • 1
  • 4
1 2 3
88
89