The Text widget is a generalized method for displaying multiple lines of text and embedded images and windows. It also provides ways to change both the appearance and functionality of its contents — i.e. font, size, and color. You can also make the text, widgets, or embedded images respond to keyboard or mouse actions. The appearance and functional features can be controlled by associating them tags, which may be associated with multiple pieces of text.
Questions tagged [tkinter-text]
207 questions
0
votes
0 answers
Is there a better way to update Tkinter text widget when using image_create?
This code works fine and does exactly what I want but in the larger application that it is used in, when loading a new PDF or using the zoom in/zoom out buttons, the frame flickers not nearly as quickly as I would like or at all if possible.…

blaufer
- 117
- 1
- 3
- 11
0
votes
0 answers
Displaying live console output through Tkinter
I made a program that runs from a basic GUI. The GUI has one button which starts a long-ish process, and I want to show what's going on for the user to read live.
This is the GUI part of my code, I tried to apply solutions that I read here, which…
0
votes
0 answers
Search option for checkbuttons in tkinter
If we have some 2000-3000 checkbuttons, in order to select the particular checkbutton it is difficult. So is there any way for search option to check the checkbuttons string(same as text search inside textbox). Please share the code if you have…

Vivek Km
- 1
0
votes
1 answer
Tkinter: resizable text box with scrollable
When the following code is run, a text box appear with scrollable. However, I need to make the textbox resizable with the cursor. How can I it?
import tkinter as tk
import sys
class Redirect():
def __init__(self, widget,…

kyazgan
- 59
- 5
0
votes
1 answer
Python tkinter text widget 'Modified' event doesn't seem to fire correctly
I wanted to monitor when the text in a tkinter Text widget was modified so that a user could save any new data they had entered. Then on pressing 'Save' I wanted to reset this.
I bound the Text widget's <> event to a function so that…

TomBCodes
- 71
- 5
0
votes
0 answers
How to paste values to entry box in same format Tkinter?
I want to paste below multiple values to my tkinter entry box but I have this output. How can I paste values in same format? Like one after another or paste them with splitting each one?
Example values:
12345
34232
56456
54353
87876

asena
- 1
0
votes
2 answers
I want to make a benchmark app in python using Tkinter
I want it to show the user input but it is not showing. Please send help.
I have tried code from multiple posts but no luck.
I was able to make it show the 'selected' option but for no avail. Please help me
import tkinter as tk
from tkinter.ttk…

Aerohelp
- 1
0
votes
1 answer
I can't put function result on a window on Tkinter
So right now i am making a news API and I would like the result of
filtrer_par_source(self.SourceBox)
print in my tkinter blue windows,
Code :
import tkinter as tk
import tkinter.font as tkFont
import requests
from tkinter import *
class App:
…

Xairode
- 1
0
votes
0 answers
How to trap a Text object selection event in Python3 / tkinter
Per the following Stackoverflow wisdom
Python/Tkinter: Trap text selection via keyboard/mouse as an event?
I tried to detect the creation of a user selection in a Text object as follows
import tkinter as tk
def handle_selection(e=None):
…

Rodney Boyd
- 39
- 1
- 7
0
votes
0 answers
How to hide scrollbar when Text widget is not scrollable in tkinter
I am writing a program in python in which I want the Text widget in tkinter to have a scrollbar .
this is a part of my code -
import tkinter as tk
import tkinter.font as tkfont
window = tk.Tk()
display_text =…

rajdeep paul
- 15
- 3
0
votes
1 answer
Binding a key to a function in Tkinter
I have a problem with binding a key (Ctrl-A) to a function (select all) in menu_bar function. Whatever I do, this key combination is moving me to beginning of the line.
My main program:
from tkinter import *
import tkinter as tk
import func
from…

koleks92
- 1
- 1
0
votes
0 answers
I can not figure out why my app menu is still freezing after I have used threading on tkinter
When I run the app, the run button is still responsive for a few seconds before the entire app freezes but the thread continues running. Where is the problem in my code and how do fix it?
import threading
from tkinter import *
from tkinter import…

Victor N
- 1
0
votes
0 answers
See tkinter Label on screen
I wanted to do my first tkinter code with python3, but when I used the code below a window opens up without any text. If somebody nows how to fix this please let me now.
I already have the latest version of tkinter and I am using the mac…

Enno
- 1
- 2
0
votes
1 answer
My Tkinter code is not executing before the next lines of the code
I am trying to make a reminder in python which sends message to whatsapp.
import pywhatkit
import tkinter as tk
def sendmsg():
L1.grid_forget()
E1.grid_forget()
L2.grid_forget()
E2.grid_forget()
button.grid_forget()
…
0
votes
0 answers
Selective deletion of (stop)words in Tkinter
Pre-Introduction
l am a beginner in Tkinter, l learn mostly from seeing videos(Youtube) and searching up problems according to what l need. My Python knowledge is until Object oriented but very rusty. And English isn't my mother languague
Stopwords…