3 # this program creates a canvas and puts a single polygon on the canvas
9 def createWidgets(self
):
10 self
.QUIT
= Button(self
, {'text': 'QUIT',
12 'command': self
.quit
})
13 self
.QUIT
.pack({'side': 'bottom', 'fill': 'both'})
15 self
.draw
= Canvas(self
, {"width" : "5i", "height" : "5i"})
17 # see the other demos for other ways of specifying coords for a polygon
18 self
.draw
.create_polygon("0i", "0i", "3i", "0i", "3i", "3i", "0i" , "3i")
20 self
.draw
.pack({'side': 'left'})
23 def __init__(self
, master
=None):
24 Frame
.__init
__(self
, master
)