atk
atk copied to clipboard
Bind for Text Selection and Tag
Hi,
Thank you for the work, it looks good.
I am trying to build a small editor using this to replace / an alternative to gtksourceview. However I did not see how I can do:
- Handling text selection in the Text widget (select and get text, and iter start/end
- Create tags and apply to selection or bind on key event with text color so I can highlight it (similar to https://stackoverflow.com/questions/14786507/how-to-change-the-color-of-certain-words-in-the-tkinter-text-widget)
Many thanks,
not implement. but can call interp
tk.MainInterp().Eval(text.Id()+ " tag add highlightline 3.0 4.0")
tk.MainInterp().Eval(text.Id() + ` tag configure highlightline -background yellow -font "TkFixedFont" -relief raised`)
Any plan or time to implement it?