StaticBitmap question please.

Hello all.
  I have a routine where I'd like to have a bitmap image be updated on the
screen every second or so. I believe what I want to do is along these lines
...

data =
urllib.urlopen("http://www.google.com/logos/winter_holiday_04_sam.gif" ).rea
d()
stream = cStringIO.StringIO(data)
bmp = wx.BitmapFromImage( wx.ImageFromStream( stream ))

self.bitmap_1 = wx.StaticBitmap(self.window_1_pane_1, -1, bmp,
(bmp.GetWidth(), bmp.GetHeight()))

sizer_3 = wx.BoxSizer(wx.HORIZONTAL)
sizer_3.Add(self.bitmap_1, 0, 0, 0)
self.window_1_pane_1.SetAutoLayout(1)
self.window_1_pane_1.SetSizer(sizer_3)
sizer_3.Fit(self.window_1_pane_1)
sizer_3.SetSizeHints(self.window_1_pane_1)

I know this works to put up the original graphic, but is there a statement
to update the graphic, like a .Update()? I know how to setup the timer and
re-load the graphic from the web ( my example graphic is static, but I have
a dynamic graphic in mind ...)

Thanks!
Dave

GMane Python wrote:

Hello all.
  I have a routine where I'd like to have a bitmap image be updated on the
screen every second or so.

Maybe this will help:

http://wiki.wxpython.org/index.cgi/wxStaticBitmap

Don't forget to look in the Wiki!

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Thank you, sir!

···

----- Original Message -----
From: "Chris Barker" <Chris.Barker@noaa.gov>
Newsgroups: gmane.comp.python.wxpython
Sent: Wednesday, December 22, 2004 4:51 PM
Subject: Re: StaticBitmap question please.

GMane Python wrote:
> Hello all.
> I have a routine where I'd like to have a bitmap image be updated on

the

> screen every second or so.

Maybe this will help:

http://wiki.wxpython.org/index.cgi/wxStaticBitmap

Don't forget to look in the Wiki!

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov