Problem reloading the image on the frame

Hi Robin,
I think i solved the problem… thanks for the inputs. And yeah by the
way are you the same Robin Dunn who is creator WxPython :slight_smile: ???

thanks,

···

On Feb 11, 2008 12:50 PM, Robin Dunn robin@alldunn.com wrote:

Varsha Purohit wrote:

Yeahh i am trying to figure out how to communicate like that in

wxpython. since i am new to wxpython i am not able to understand how to
do it… can u please explain me with respect ot my code ???

Typically you would want to create all the widgets in the init method:

    ...
    self.sw = wx.ScrolledWindow(self)
    [self.sb](http://self.sb) = wx.StaticBitmap(self.sw, -1, theBmp)
    ...

Then when you want to change the image in some other event handler:

    ...
    self.sb.SetBitmap(theNewBmp)
    ...

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


Varsha Purohit,

Graduate Student