is it possible, well yes of course its possible, but does anyone know the best way to alter the colour of a word within a sentence in a wxpython window. I know how to change the colour of the entire text but not a specific word. So for instance if the word "danger" appears within the text it is always red? Any help greatly appreciated
juzzy
3
Newbie Poster
Recommended Answers
Jump to PostHTML code is easy to learn and you can format text using a simplified version of it, and show it in the wx.html.HtmlWindow() widget. Here is an example:
http://www.daniweb.com/forums/post803532-107.html
Jump to PostTo my knowledge you cannot selectively color text with the simple wx.TextCtrl widget, for that you need the wx.StyledTextCtrl widget.
All 5 Replies
Ene Uran
638
Posting Virtuoso
juzzy
3
Newbie Poster
Ene Uran
638
Posting Virtuoso
Ene Uran
638
Posting Virtuoso
juzzy
3
Newbie Poster
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.