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

Is there a way to make Entry widgets in tkinter rounded or look nicer?

I code in Python and I use tkinter quite a lot to create GUIs for my applications. I prefer to make my GUIs look round and modern rather than sharp cornered boxes. For buttons and labels I tend to use PhotoImage to use self-made images that provide…
2
votes
1 answer

How to change ttk.Entry insertion cursor color?

I am developing an application using Python3 and tkinter 8.6. Part of is a rather complex dialog which uses a dark background. The enclosed code employs only a few widgets to show the area I can not make work. Among other things my dialog makes…
2
votes
1 answer

How do I make a tkinter message disappear if the entry in Tkinter Widget has been corrected?

I have created a button which if pressed, directs to the check function which is sort of a validation check for an entry widget for users. If the first name that the user enters contains anything apart from letters, it should give an invalid check…
khushi
  • 365
  • 1
  • 4
  • 17
2
votes
3 answers

How can I highlight the pre-entered text in tkinter ENTRY so User can just type over ( without selecting, deleting)

noob here trying to create a simple entry with tkinter , so the pre-entered text "Enter your name here" is highlighted. The user can then just types their name ( or hit delete to remove the content...) is there any simple argument / method to use…
JeanP8
  • 31
  • 1
  • 3
2
votes
1 answer

How to make notebook's each tab as an individual entity?

I am trying to set value in an path_entry field. Here is the code: from tkinter import filedialog, ttk,scrolledtext import tkinter as tk class GUI(tk.Tk): def __init__(self): super().__init__() self.title("SC") …
Taimorr Mughal
  • 87
  • 1
  • 10
2
votes
1 answer

Tkinter Entry justify text right when text is larger than the box

I have some tk.Entry()s in my gui. The text inside the entries is always right-aligned. But once the text is larger than the box, the text is left-aligned. Sample-Code: import tkinter as tk root = tk.Tk() small_text = "abc" big_text =…
2
votes
1 answer

Not able to access list in another window in tkinter python

from tkinter import * root=Tk() root.title("") #root.geometry("500x500") global c c=[] def new(): win=Toplevel() win.title("") for i in range(0,25): name=Label(win,text=str(c[i]),bg='#ADD8E6',fg='white',width=20) …
2
votes
1 answer

how do i use expand on entrys while i can position them python 3 tkinter

I want to make entrys move while resizing. an example is this code. i didnt want to upload the 300 line code because it does not have to do anything with the design. as you can see when you resize it horizontaly the entry2 is moving horizontaly how…
2
votes
2 answers

How to input/use float through Entry box tkinter Python?

I am trying to learn about tkinter so i create small GUI python to input 2 numbers and use their tk.Entry() box to input number and find the sum of both. But I fail to update the float number and generate their sum. Can anyone help add some…
Pozz Phut
  • 25
  • 1
  • 1
  • 4
2
votes
1 answer

Is there a way to get frame childs reference?

I wrote a GUI that is working fine, it's supposed to get some information from a file and to show me on entries, and base on how many lines of info are present, it will generate same many entries. The problem on this code is: I want to let me to…
ASI
  • 334
  • 3
  • 15
2
votes
1 answer

Tkinter Entry/Text widget problem when I use bind function

I'm new to Tkinter, I want to print Entry's contents while I'm typing. Here's my code I've tried: from tkinter import * def get_(e): print(entry.get()) root = Tk() entry = Entry(root) entry.pack() entry.bind("",…
Darcy
  • 160
  • 1
  • 9
2
votes
3 answers

Update entry widget based contents of another entry widget

My code contains two entry widgets, which are supposed to hold the height and width of an image. When the height or the width is adjusted by the user entering a number into one of the two widgets, the value of the other is supposed to be adjusted…
sunnytown
  • 1,844
  • 1
  • 6
  • 13
2
votes
1 answer

How to save entry input to variable in tkinter i'm using python 3

How to save entry in entry variable my question is how to save entry into a variable? FOR EXAMPLE: user_name = Entry(frame, bd =5) user_name.pack(side = RIGHT) If a user types any data I want to save data in this variable like input: user_name =…
Hamza Lachi
  • 1,046
  • 7
  • 25
2
votes
1 answer

How do I write from a list (each index independently) - within a dictionary - to a list of Entries?

I am setting up a number of Entry fields and trace-variables based on a user inputted integer. The entry information is then store to a list in dictionary. Two buttons exist: 'enable', which enables the entry-fields for editing but at the same time,…
Ashiqa
  • 31
  • 6
2
votes
2 answers

How do I use the entry widget on Tkinter to execute a function by inputting parameters?

I am writing code for a reddit bot that takes any given keyword, searches any given subreddit for that given key word, and if it finds that key word in the subreddit, pulls the title of the thread. I have developed a GUI with Tkinter, and using the…
nick_rinaldi
  • 641
  • 6
  • 17