define
Bengt Richter
bokr at oz.net
Sat May 10 14:20:16 EDT 2003
On 10 May 2003 18:03:57 GMT, bokr at oz.net (Bengt Richter) wrote:
[...]
> with root.widgetlist[i]: # the most natural usage IMO, could still allow '~' for bypass
> xpos += dx; ypos += dy # xpos, ypos found in with-space, but not dx,dy
> redraw() # redraw found in with-space
> newcoords = (xpos, ypos) # creates root.widgetlist[i].newcoords if not preexisting
>
>vs
> tmp = root.widgetlist[i]
> tmp.xpos += dx; tmp.ypos += dy
> tmp.redraw()
> tmp.newcoords = (xpos, ypos) # creates root.widgetlist[i].newcoords if not preexisting
Oops, that should be
tmp.newcoords = (tmp.xpos, tmp.ypos) # creates root.widgetlist[i].newcoords if not preexisting
Regards,
Bengt Richter
More information about the Python-list
mailing list