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