DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   Tkinter Text tags (http://www.daniweb.com/forums/thread40385.html)

JabaPyth Mar 1st, 2006 11:08 pm
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)

vegaseat Mar 2nd, 2006 3:19 am
Re: Tkinter Text tags
 
Can you give us an example what you mean with "new tag"?

JabaPyth Mar 2nd, 2006 6:05 pm
Re: Tkinter Text tags
 
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:

Ene Uran Mar 8th, 2006 11:27 am
Re: Tkinter Text tags
 
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.


All times are GMT -4. The time now is 12:29 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC