For the Tkinter Text widget, is there a way to assign the selected text to a new tag?(other than 'sel',which changes)

Recommended Answers

All 3 Replies

Can you give us an example what you mean with "new tag"?

Sorry, i've solved it on my own. In the tkinter text widget, tags are used for formatting:
Text.add_tag(name='myTag',start=1.0,stop=END,font='ariel 20')

Thanks anyway! :cheesy: :mrgreen:

Where can you find more info on the tkinter text widget?

I have played with Tkinter GUI just a little and find it very nice.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.