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

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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.