[python-win32] How can I edit a string inside a textbox

Alex Garipidis n3atione at hotmail.com
Wed Dec 5 11:37:47 CET 2007


Hello everybody,
 
I have a Tkinter Textbox in my application. I want to scan the textbox for a symbol, defined by me as a "mark", and change the word that is inside or next to that symbol.
 
This is what i mean:
 
If a user types this to the textbox:
 
"Hello @everybody, how are you doing?"
 
I want to scan this string for the "@" character (or something else) and edit the word next to it (or "inside" it, e.g. "@everybody@"), "everybody" in this case, and make it have a color for example or make it underlined. 
 
I suspect that the answer is in the tag methods of Textbox but so far I haven't found an answer yet. Maybe I'm looking in the wrong direction :)
 
Thank you all
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20071205/3e732c34/attachment.htm 


More information about the python-win32 mailing list