tkinter-scrolledtext

Tkinter ScrolledText search() function not working beyond the first line

Tkinter ScrolledText search() function not working beyond the first line Question: I’m creating a tkinter application that highlights misspelled words in a ScrolledText() widget. To find the index of the misspelled word I use the check() function. However, when I move to a new line in the scrolled text, the index returned by check() is …

Total answers: 1

Python Tkinter: Unbinding Mouse Scroll Wheel on ComboBox

Python Tkinter: Unbinding Mouse Scroll Wheel on ComboBox Question: I have a combobox within a scrollable canvas frame- when I open the combobox and attempt to scroll through the options, the combobox and the entire window both scroll together. It would be nice to pause canvas scrolling while the combobox is open, but unbinding the …

Total answers: 2

How ro change a Tkinter ScrolledText widget's Scrollbar color?

How ro change a Tkinter ScrolledText widget's Scrollbar color? Question: 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 = ScrolledText(root) Box.vbar.config(troughcolor = ‘red’, bg = ‘blue’) Box.pack() …

Total answers: 3