I have a map image displayed.
If the user clicks a button the image will be zoomed by accessing more
detailed 'tiles' - if these are not held locally I need to go to the
internet to obtain and save them (create_big). This may take some time.
To cater for this I want to display a low resolution image (lfile) which
is stored locally.
How can I ensure that the image is updated immediately so the user sees
and a change ?
When the following code is processed the screen does not update until I
leave the 'onHit' code. I've tried ...refresh() to no effect.
-------------------------------------------------------
def onHit(self, evt):
(lDef,lFile)=zoom_in(1,self.Form.dImap.Map_def)
lZ=lDef[0]; lX=lDef[1]; lY=lDef[2]
self.Form.dImap.Map_def=(lZ,lX,lY)
# redisplay with new image
self.Form.dImap.Picture=lFile # Temporary image
if create_big((lZ,lX,lY)):
# hi-res image
self.Form.dImap.Picture='bigone.png'
# if hi-res not available - keep low res visible
-----------------------------------------------------
Iain
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]