I was wondering if anyone knows a way to program flashing text into wxPython? (I am fairly new to wxPython)
It would flash between red and normal every half second or so, I am using Python 2.7.3, not the most recent release.
Thanks
Chris
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to look at how to change fonts on the fly. Typically, it’s just calling the widget’s SetFont() method. Since you want to do this on a regular basis, then you’ll almost certainly want to use a wx.Timer. You can read my tutorial on that subject, if you want. I would probably use the StaticText widget.
Update: Here’s a silly example: