Image gallery handling - use EXPOSE to draw initial window, make sure

images don't go over the edge


svn: r1594
This commit is contained in:
Don Allingham 2003-05-27 03:43:36 +00:00
parent 1807596d31
commit a046f09f80
2 changed files with 4 additions and 5 deletions

View File

@ -1487,7 +1487,6 @@ class EditPerson:
self.redraw_event_list()
elif page == 6 and self.not_loaded:
self.not_loaded = 0
self.gallery.load_images()
elif page == 8 and self.lds_not_loaded:
self.lds_not_loaded = 0
self.draw_lds()

View File

@ -387,11 +387,11 @@ class Gallery(ImageSelect):
self.canvas_list[oid] = (grp,item,text,self.cx,self.cy)
self.cx += _PAD + _IMAGEX
if self.cx + _PAD + _IMAGEX > self.x:
self.cx = _PAD
self.cy = self.cy + _PAD + _IMAGEY
else:
self.cx = self.cx + _PAD + _IMAGEX
self.cy += _PAD + _IMAGEY
def load_images(self):
"""clears the currentImages list to free up any cached