954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Tkinter Text tags

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

JabaPyth
Newbie Poster
5 posts since Mar 2006
Reputation Points: 10
Solved Threads: 2
 

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

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

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:

JabaPyth
Newbie Poster
5 posts since Mar 2006
Reputation Points: 10
Solved Threads: 2
 

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.

Ene Uran
Posting Virtuoso
1,723 posts since Aug 2005
Reputation Points: 625
Solved Threads: 213
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You