tkinter-entry Questions

7

Solved

I'm trying to use an Entry field to get manual input, and then work with that data. All sources I've found claim I should use the get() function, but I haven't found a simple working mini example ...
Decanal asked 23/5, 2012 at 20:12

4

Solved

Is there a way to add undo and redo capabilities in Tkinter Entry widgets or must I use single line Text widgets for this type of functionality? If the latter, are there any tips I should follow ...
Laquanda asked 10/11, 2010 at 17:3

4

I am trying to make a popup window where someone can fill in a string in an Entry box. I have gone through many examples, but it doesn't work. I am trying to this: var_entry = simpledialog.askst...
Ichthyosis asked 26/11, 2018 at 11:44

8

Solved

I'm making a simple app just to practice python in which I want to write text as if it were Notepad. However, I can't make my entry bigger. I'm using tkinter for this. Does anybody know how to make...
Alexaalexander asked 1/7, 2014 at 2:22

4

Solved

How to insert a temporary text in a tkinter Entry widget? For example, I have a Label User and next to it I have an Entry widget which should have some text "Enter your username..." at the beginni...
Deprivation asked 27/5, 2015 at 19:42

1

Solved

I am working on an interactive plotting script using matplotlib version 3.2.2 and tkinter. When the script is run, the first window looks like this: Furthermore, the rcParams are updated and plott...
Marchesa asked 17/7, 2020 at 11:25

3

Solved

I noticed that the width argument for the Tkinter entry widget is in characters, not pixels. Is it possible to adjust the width in pixels?
Renny asked 30/7, 2011 at 4:4

6

Solved

I am trying to set the text of an Entry widget using a button in a GUI using the tkinter module. This GUI is to help me classify thousands of words into five categories. Each of the categories has...
Stetson asked 4/5, 2013 at 11:42

2

Solved

I am trying to bind the Enter key with a button. In the bellow code, I am trying to get entries from the entry widget, when the button bt is pressed, it calls theenter() method which gets the entr...
Handbarrow asked 24/11, 2017 at 14:58

2

Solved

I have a window that prompts users to enter the directory of their log files. However, my label seems to pack on top of my entrybox. Any idea on how to pack them side by side? labelText=StringVar(...
Interinsurance asked 31/8, 2013 at 17:10

2

I am creating an application and I want to use the entered values in the GUI Entry widget. How do I get the entered input from a Tkinter Entry widget? root = Tk() ... entry = Entry(root) entry.p...
Bufflehead asked 22/3, 2012 at 0:59

2

Solved

I'm trying to use Tkinter's Entry widget. I can't get it to do something very basic: return the entered value. Does anyone have any idea why such a simple script would not return anything? I've tri...
Exmoor asked 26/2, 2016 at 22:22

2

Solved

I'm currently working on a scraper-sort of program, which will enter a Wikipedia page, and in its current form, will scrape the references from the page. I'd like to have a gui that will allow the...
Basilica asked 28/9, 2017 at 8:18

3

If I execute this code, it works fine. But if I copy something using the keyboard (Ctrl+C), then how can I paste the text present on clipboard in any entry box or text box in python? import pyperc...
Rapp asked 18/10, 2017 at 18:56

1

Solved

So I've been working on this program and I'm finding it very hard to figure out what's wrong. I'm fairly new to tkinter so this may be quite minor. I'm trying to get the program to change the entr...
Poliomyelitis asked 3/9, 2017 at 18:48

4

Solved

How to check if a Tkinter entry box is empty? In other words if it doesn't have a value assigned to it.
Ploy asked 16/3, 2013 at 21:51

1

Solved

I wants to make a program with multiple tkinter Entry widgets. I use a for loop to make multiple Entry widgets. But how can I get the value from it? My test code: from tkinter import * root=Tk()...
Vaios asked 19/2, 2015 at 14:16

1

Here is my code: import tkinter as tk userData = tk.Tk() nbdays = tk.IntVar() mainframe = tk.Frame(userData, relief= 'raised', borderwidth=1) tk.Label(mainframe, text = 'Number of days', font = 1...
Custom asked 4/3, 2014 at 2:40

1

Solved

Is there any way to change the ttk.Entry font I've tried with the ttk.style but TypeError occurs. Like: my_style = ttk.Style('TEntry' , font = ('Arial' , 10 , 'bold')) my_entry = ttk.Entry(maste...
Lodhia asked 23/12, 2013 at 13:22

2

Solved

I was trying to change the color of the words in my ttk.Entr widget when I set the state to disabled, I looked up the manual, there's an option called disabledforeground, so I wrote a test snippet ...
Orme asked 20/11, 2012 at 11:45

3

Solved

I am trying to obtain an Entry that starts with an ellipsis .... Here was the code I tried: e = Entry(rootWin, width=60, state="readonly") e.insert(0, "...") I think the error is occurring bec...
Cracker asked 13/2, 2013 at 5:51

2

Solved

I am making an entry that only allows numbers to be entered. I am currently stuck on deleting the character just entered if it that character is not a integer. If someone will replace the the "BLAN...
Beera asked 7/7, 2012 at 2:26

1

Solved

Is there any way to make the Tkinter Entry widget so that text can be highlighted and copied, but not changed?
Eutherian asked 9/9, 2010 at 20:26

1

Solved

I'm trying to associate a variable with a Tkinter entry widget, in a way that: Whenever I change the value (the "content") of the entry, mainly by typing something into it, the variable automatic...
Protamine asked 26/3, 2010 at 14:38

1

Solved

from Tkinter import * app = Tk() text_field = Entry(app) text_field.pack() app.mainloop() I want to be able to check if text_field is currently selected or focused, so that I know whether or not...
Cytherea asked 6/9, 2009 at 15:25

© 2022 - 2024 — McMap. All rights reserved.