I wrote some code that I use StaticBitmap and BoxSizer.
But if I try to make frame bigger, StaticBitmap object never move and resize.
The below sample is something wrong?
You need to tell wxPython that it's been resized by binding a handler to
an EVT_SIZE event. Then in the handler you would need to re-scale the
photo and then do a Refresh().
I did some Googling and I think you may be able to modify the code in this
thread to get you started:
I messed around a bit before I found that and discovered that EVT_SIZE
tends to fire multiple times. The code in that link seems to alleviate the
issue. Since I don't know much about picture resizing, you'll have to wait
for one of those gurus.
Mike
···
-----Original Message-----
From: mkey [mailto:mkey@inter7.jp]
Sent: Tuesday, January 15, 2008 10:46 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Dynamic Resizing and Centering Image.
Hello Niels,
I wrote some code that I use StaticBitmap and BoxSizer.
But if I try to make frame bigger, StaticBitmap object never
move and resize.
The below sample is something wrong?
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception