Mercurial > code > home > repos > light9
changeset 8:6faae180d1c5
conv image to gif, clean up source formatting
author | drewp |
---|---|
date | Sun, 07 Jul 2002 05:05:36 +0000 |
parents | 1b0266dd233a |
children | 342f7d1c7561 |
files | light8/guysanddolls.gif light8/stage.py |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/light8/stage.py Sun Jul 07 04:52:48 2002 +0000 +++ b/light8/stage.py Sun Jul 07 05:05:36 2002 +0000 @@ -153,9 +153,11 @@ if self.lmbstate=='rectangle': sr = self.find_withtag('selectrect') if not sr: - sr=self.create_rectangle( self.lmbstart[0],self.lmbstart[1],coords[0],coords[1],tag='selectrect') -# sr=self.create_rectangle( *(self.lmbstart+coords), tag='selectrect' ) + sr=self.create_rectangle( self.lmbstart[0],self.lmbstart[1],coords[0],coords[1], + outlinestipple='gray50', + tag='selectrect') + # move rectangle with mouse self.coords(sr,*(self.lmbstart+coords)) # redo the dynselection with the new rectangle @@ -236,7 +238,7 @@ root=Tk() root.wm_geometry("+376+330") s=Stage(root) -s.setimage('guysanddolls.ppm') +s.setimage('guysanddolls.gif') s.pack() s.addlight('drew',(330,640),(90,20)) s.addlight('house',(360,640))