P.S.
I confirm this sample code in below environment.
OS: windows XP
wxPython : 2.8.1.1 ( unicode )
Python : 2.5.1
StaticBitmap.py (3.25 KB)
···
----- Original Message -----
From: mkey <mkey@inter7.jp>
To: wxPython-users@lists.wxwidgets.org
Sent: 18 Jan 2008 01:47:37 +0900
Subject: Re: [wxPython-users] Dynamic Resizing and Centering Image.
Hello, all
Thank you for your help on this matter.
Based on Mike's advice, I added EVT_SIZE event handler to Chris's sample code.
Now, this sample can resize and centering dynamically.I think it is better that we can see complete sample code from the
"Resizing and centering" point of view. Especially for newbies like me.But in EVT_SIZE handler( OnSizeChanged() ), I use CenterOnParent()
to centering "resized image". I am not sure whether this is ok or not.If you feel any problem, please give some advice.
Again, thank you for your help.mk
----- Original Message -----
From: Robin Dunn <robin@alldunn.com>
To: wxPython-users@lists.wxwidgets.org
Sent: Wed, 16 Jan 2008 16:38:15 -0800
Subject: Re: [wxPython-users] Dynamic Resizing and Centering Image.castironpi@comcast.net wrote:
-----Original Message-----
From: Christopher Barker [mailto:Chris.Barker@noaa.gov]
Sent: Wednesday, January 16, 2008 11:52 AMmaybe this will help.
There's some "bleed" on the frame bottom: a previous picture doesn't vanish completely.
This is a Windows quirk, it appears that wx.StaticBitmap is not
refreshing correctly when the size and the bitmap are changing. Adding
a self.Refresh() at the end of DisplayNext takes care of it.--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org