[wxPython-users] Re: wxStaticBitmap - Won't change?
Belinda Randolph
belindarandolph at sbcglobal.net
Thu Mar 22 22:05:19 PDT 2007
Guilherme,
Thank you very much.
-Belinda
-----Original Message-----
From: news [mailto:news at sea.gmane.org] On Behalf Of Guilherme Polo
Sent: Thursday, March 22, 2007 9:16 PM
To: wxpython-users at lists.wxwidgets.org
Subject: [wxPython-users] Re: wxStaticBitmap - Won't change?
What is going on is this:
You loaded a new Image, and you arent "telling" to repaint it.
If you cover the frame and uncover, the EVT_PAINT will be called and will
repaint what is needed.
You can do this manually, very easily:
First, you need to mark a region (or all the frame) as "dirty", you do this
calling self.Refresh()
Then, you repaint this "dirty" area calling self.Update()
And you will see your new image there ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
More information about the wxpython-users
mailing list