Questions tagged [tkinter-scrolledtext]
22 questions
4
votes
3 answers
tkinter "scrolledtext" copy paste doesn't work reliably
I have found a behaviour which seems to be a bug in tkinter.
If you run the following (minimal to reproduce the bug) code:
import tkinter, tkinter.simpledialog, tkinter.scrolledtext
root = tkinter.Tk('test')
text =…

Basj
- 41,386
- 99
- 383
- 673
2
votes
1 answer
Tkinter - How can I sync two Scrollbar's with two Text widget's to mirrow each others view?
I need to sync two scrolled bars. both of them manage a different text widget and when I scroll in the first one, I want to see the same behaviour in the second one. I don't want to use a single scrolled bar, both of them must to be syncronized. how…

TurboC
- 777
- 1
- 5
- 19
2
votes
0 answers
Python/Tkinter writing from right to left (RTL) inside the text widget
-I am looking for a way to change the direction of writing from right to left in the text widget so that the user can write inside it in Arabic language, ie from right to left(RTL). I searched for this topic for several days, but unfortunately I did…

samer ramy
- 21
- 2
2
votes
1 answer
How to create a scrollable list of buttons in Tkinter?
The code I have now will only print the buttons, it will not create a scroll bar. I want it to print the buttons and allow me to scroll through them. The best I could do is create the scroll bar, but not get it to attach to anything? I'm new to…

autoreportproj
- 23
- 1
- 4
2
votes
1 answer
How to apply rowheight dynamically in tkinter Treeview
How to set dynamically rowheight in Treeview widget of tkinter?
I mean if I am adding wrapped text into the row then how can I set that particular row's height without affecting other rows' heights. Image 1 is the Treeview object created without…

Muddybeast
- 31
- 4
1
vote
1 answer
How to change tkinter geometry values in regard to (for example) a scrolled text height?
I was wondering how do the geometry() function values in tkinter come to play with the height value of for example a scrolled text? How can I convert the units to work with each other?
For example: If I want to open a scrolled text box underneath my…

queuetzi
- 61
- 5
1
vote
1 answer
Scrollbar on tkinter canvas/frame not working
I adapted the solution by Bryan Oakley at Adding a scrollbar to a group of widgets in Tkinter to implement a scrollbar on a tkinter Frame. (The code reads key/value pairs from a dict and generates a series of editable entries in table format,…

Rodney Boyd
- 39
- 1
- 7
1
vote
1 answer
How can I align scrolled text to the right?
The problem is simple. The scrolled text box will be written into it in Arabic.
So I need to align the text whenever I type to the right of the box. There isn't any attribute, such as justify. Also I used a tag, but I couldn't do it.
show_note =…

Mohammad Sorour
- 35
- 10
1
vote
3 answers
How ro change a Tkinter ScrolledText widget's Scrollbar color?
I'm using the module ScrolledText in a Tkinter GUI.
I wish to change the colour of the Scrollbar encompassed in the ScrolledText widget, but I'm having some difficulty.
My syntax is correct (according to documentation).
Box =…

Anti Earth
- 4,671
- 13
- 52
- 83
1
vote
1 answer
Python: get text from tkinter scrolledtext and read line by line
I'm currently working on a simple txt converter. The data is loaded from a txt file into a scrolledtext widget. Now I want to read this text line by line (since I'd like to have the opportunity to edit the original data) and do the conversion based…

Michael
- 13
- 3
1
vote
1 answer
Is there a ttk equivalent of Scrolledtext widget Tkinter
I set the theme of my main window to an awtheme 'awdark'.All the widgets with ttk extension set its appearance according to the theme by itself all except for the scrolled text widget which appears white in colour(i.e, color of the field as well as…

Iron man
- 13
- 5
0
votes
1 answer
Get start and end index of visible text in python tkinter text widget
Is there a way to get the start and end index of the visible text in a tkinter text widget?
"myTextWidget.index(CURRENT)" is not what I am looking for, since it only gives me the index of the cursor position.
I want to build a program which search…

Daniel Louw
- 9
- 3
0
votes
1 answer
Adding a resizable scroll-bar in Tkinter GUI
I am new to Tkinter. I am trying to add a scroll-bar in the GUI that I created using Tkinter. I added the scroll-bar using the following program. But, the problem is that, when I resize my window using mouse cursor, the size of the scrollbar also…

programmer_04_03
- 137
- 8
0
votes
1 answer
tkinter ScrolledText waits for loop to stop when there is a sleep command but updates live when there isn't
I am trying to output live stdout and stderr to a ScrolledText widget. I have gotten the live output fine, but the ScrolledText widget is not updating until the script is finally executed. I tested this on a simpler example to see if it was the time…

astroguy
- 45
- 4
0
votes
2 answers
Scrolled Text in Tkinter (scrollbar issue) with .grid()
I'm having some issues with a ScrolledText widget in tkinter.
The Scrollbar is not showing up.
Here is my code:
from tkinter import *
import os
from tkinter.scrolledtext import ScrolledText
#window variables
win =…

Chiz
- 7
- 2