Python Forum
tkinter how to unselect text in textbox
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter how to unselect text in textbox

In my program, I use tkinter and a textbox contenent a text. The text should be select, unselect and select a next word

My code select word but don’t unselect

my code

liscence creaticw commons you can use this code only if you put the urlsource and my name no comercial usage are permed you can only use this code if you mak a free softwate programmr see gplv3

for l in self.list :


self.textBox.tag_add(SEL,str (float (pos)),str (float (pos+len(l)-1) ) )
# Larz60+
self.textBox.mark_set(INSERT,str (float (pos) ))

indent preformatted text by 4 spaces
but my code select a wold but bo unselect and select the next word

how to unselect a word or all word on tkinter textbox

thanks for your support

Best regards


Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter change the text of the checkbox zazas321 1 225 Sep-17-2021, 06:19 AM
Last Post: zazas321
  tkinter text widget word wrap position chrisdb 6 2,135 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 1,880 Mar-10-2021, 04:21 PM
Last Post: Sir
  [Tkinter] Tkinter Textbox only showing one character Xylianth 1 697 Jan-29-2021, 02:59 AM
Last Post: Xylianth
Photo Tkinter TEXT background image _ShevaKadu 5 3,341 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter | Button color text on Click Maryan 2 1,197 Oct-09-2020, 08:56 PM
Last Post: Maryan
  [Tkinter] Text Upload LearningLittlebyLittle 0 702 Sep-04-2020, 07:55 PM
Last Post: LearningLittlebyLittle
  [Tkinter] Indentation for Tkinter-made Text Editor ShakeyPakey 4 2,008 Jun-08-2020, 03:13 PM
Last Post: menator01
  [Tkinter] Redirecting stdout to TextBox in realtime Gilush 2 3,815 Jun-06-2020, 11:05 AM
Last Post: deanhystad
  How to make button text bold in Tkinter? scratchmyhead 2 2,997 May-16-2020, 02:53 AM
Last Post: scratchmyhead

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020