Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>: > In message <i93mgn$i3...@news.lrz-muenchen.de>, Olaf Dietrich wrote: > >> If I replace update() by update_idletasks(), the problem >> disappears, but unfortunately, considerably fewer events >> are recorded on the canvas (when connecting the pixels with >> lines, the lines become much longer with update_idletasks() >> than with update()). [...] > How about simply avoiding recursive updates. > > Add this line to your __init__ method: > > self.reentered = False [...] > if not save_reentered: > self.root.update()
I tried this, but it makes the GUI even less responsive than the unconditional call of update_idletasks(). Thanks, Olaf -- http://mail.python.org/mailman/listinfo/python-list