Question: create using python Can you place three canvas on the top level window? If yes. Create such an application. 2)from tkinter import * root =

create using python Can you place three canvas on the top level window? If yes. Create such an application.

2)from tkinter import *

root = Tk()def clicked(event): C1.delete(ALL) C1.create_oval(event.x, event.y, event.x+20, event.y+20, outline="yellow", fill="blue")C1 = Canvas(root, height=250, width=300)C1.bind("", clicked)# bind mouse event to this canvas C1C1.pack()root.mainloop()# mainloop shall be called once and only once# it allows the application to handle eventsobule-1 meanto double click on Button-1. I.e. double click on left mouse button.Create a function and name this function stop. The stop function would be similar to functioncallback but this time, it will quit the program by calling sys.exit(). In order to use this function, youhave to import sys .obule-1 meanto double click on Button-1. I.e. double click on left mouse button.Create a function and name this function stop. The stop function would be similar to functioncallback but this time, it will quit the program by calling sys.exit(). In order to use this function, youhave to import sys . 4. Button-1 is left button, how about Button-2 and Button-3? Modify the above program so that yourprogram can handle both Button-1 and Button-3 as well. When Button-3 clicked, it will draw a filled

red circle. Note Button-1 still draw a filled blue circle.

oouble-1 meanto double click on Button-1. I.e. double click on left mouse button.Create a function and name this function stop. The stop function would be similar to functioncallback but this time, it will quit the program by calling sys.exit(). In order to use this function, youhave to import sys .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!