somehow this does not work: self.list_box_1.SetForegroundColour(5,"red")
SetForegroundColour is though listed in the api reference
Kruptein 15 Posting Whiz in Training
Recommended Answers
Jump to PostHowever, this will work:
self.list_box_1.SetForegroundColour("red")
Jump to PostWell listboxes are HTML okay, so you can put colours in. I know this works for text as i can see it working in the wxPython demo, i'm not sure that it would work for background.
If you look at listctrl's in the wxPython demo, they are similar yet …
Jump to PostYes, look for HTMLlistbox, it is a child of the listbox.
All 10 Replies
HiHe 174 Junior Poster
Kruptein 15 Posting Whiz in Training
HiHe 174 Junior Poster
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
Kruptein 15 Posting Whiz in Training
lllllIllIlllI 178 Veteran Poster
Kruptein 15 Posting Whiz in Training
lllllIllIlllI 178 Veteran Poster
Kruptein 15 Posting Whiz in Training
HiHe 174 Junior 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.