Question: 1. 2. Assume that a GUl application uses Tkinter to support its class that draws the interface. Also, assume that a Tkinter canvas is being
1.

2.

Assume that a GUl application uses Tkinter to support its class that draws the interface. Also, assume that a Tkinter canvas is being used in the class the Tkinter canvas is stored in a self, canvas variable Write the method draw_vertical_lines. It takes in a int n. The int n specifies how many lines should be drawn across the screen The function should draw n vertical lines equally spaced apart across the screen. See image at right for an exa mple with n 6. Some potentially useful Tkinter methods: Canvas.winfo height(self) and Canvas.winfo_width(self) Canvas.create_line (self, xe, ye, x1, yl) def draw_vertical_lines(self, n: int) -None
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
