Definition The option defines the height of the Canvas(width). Syntax tkinter.Canvas(height=number) Examples The random.randrange(a,b) is used to generate values for the creation of line.
The tkinter.Canvas create polygon method is used to create the random polygon point values and color is filled through random.sample method.
The for loop generate the ovals through values generated by random methods.
|