Answer To: Python help ASAP
Swapnil answered on Oct 10 2021
from tkinter import CHORD,Tk, Canvas, Frame, BOTH
import keyboard
class Solution(Frame):
def _init_(a,s,colour):
super()._init_()
a.colour=colour
a.s=s
a.master.title("Robot")
a.pack(fill=BOTH, expand=1)
a.canvas = Canvas(a,background="red")
a.canvas.pack(fill=BOTH, expand=1)
a.head()
a.body()
a.hands()
a.antenna()
def head(a):
a.canvas.create_rectangle(120, 70, 220, 120, outline="red",
fill="grey", width=1)
a.canvas.create_oval(135,80,155,100,outline="red",
fill="blue", width=2)
a.canvas.create_oval(185,80,205,100,outline="red",
fill="blue", width=2)
a.canvas.create_oval(142-a.s,86,148-a.s,92,outline="red",
fill="red",...