Closed mtalimanchuk closed 4 years ago
Thanks for this, the text areas tag features is something I've not used much, so always happy to find out how people use it. This is definitely something we can add!
@jarvisteach thanks for your reply! I'm glad to see the project is up. May I send a pull request with possible text area enhancements?
Yes please! Can you make sure it's against the latest version of the next_release
branch.
Pull reuest #572 merged
Hi! I am doing some text parsing and need to tag text in the TextArea on the go. I can do so by selecting a range, then pressing a button. The problem is,
getAreaTextTag
returns only the tag config and I haven't found a way to get the actual ranges, except for using tkinter'stag_ranges()
and yourwidgetManager
:app.textAreaTagSelected('main_TextArea', 'Tagged')
ta = app.widgetManager.get(app.Widgets.TextArea, 'main_TextArea')
print(ta.tag_ranges('Tagged'))
Which IMHO is not very Pythonic. I see you used a lot of similar functions calling other tkinter's
tag_xxx()
methods but nottag_ranges()
. Maybe it is worth implementing?