СДЕЛАЙ ОТЛАДКУ КОДА и перепиши с исправлениями

import tkinter as tk
import time

class Application(tk.Frame):
def init(self, master=None):
super().init(master)
self.pack()
self.create_widgets()

def create_widgets(self):
self.title = tk.Label(self, text=“Управление высоковольтным выключателем МНА-1”)
self.title.pack(side=“top”)

self.manual_button = tk.Button(self, text=“Ручной режим”, command=self.switch_manual_mode)
self.manual_button.pack(side=“left”)

self.auto_button = tk.Button(self, text=“Автоматический режим”, command=self.switch_auto_mode)
self.auto_button.pack(side=“right”)

self.status_label = tk.Label(self, text=“Статус: Автоматический режим”)
self.status_label.pack(side=“top”)

self.switch_indicator = tk.Canvas(self, width=50, height=50)
self.switch_indicator.pack(side=“top”)

self.current_indicator = tk.Canvas(self, width=50, height=50)
self.current_indicator.pack(side=“left”)

self.vibration_indicator = tk.Canvas(self, width=50, height=50)
self.vibration_indicator.pack(side=“right”)

self.timer_label = tk.Label(self, text=“”)
self.timer_label.pack(side=“bottom”)

def switch_manual_mode(self):
self.status_label.configure(text=“Статус: Ручной режим”)
self.manual_mode()

def switch_auto_mode(self):
self.status_label.configure(text=“Статус: Автоматический режим”)
self.auto_mode()

def manual_mode(self):
pass #Write manual mode code here

def auto_mode(self):
self.switch_indicator.configure(bg=“green”) #Set switch indicator to on
self.current_indicator.configure(bg=“green”) #Set current indicator to on
self.vibration_indicator.configure(bg=“green”) #Set vibration indicator to on

#Prompt user to turn on high voltage switch
if self.prompt_yes_no(“Включить высоковольтный выключатель МНА-1?”):
#Show command message for 3 seconds
self.show_command_message(“Команда: Высоковольтный выключатель МНА-1 Включен.”)
#Start current increase process
self.start_current_increase()
#Start transition process
self.start_transition_process()
#Start increased power process
self.start_increased_power()
#Start increased vibrations process
self.start_increased_vibrations()
#Show stationary message
self.show_command_message(“Процесс перешел в стационарный режим.”)
#Turn off high voltage switch
self.turn_off_high_voltage_switch()
else:
#Reset process
self.reset()
return

def prompt_yes_no(self, question):
answer = tk.messagebox.askquestion(“Вопрос”, question)
if answer == “yes”:
return True
else:
return False

def show_command_message(self, message):
command_window = tk.Toplevel(self)
tk.Label(command_window, text=message).pack()
command_window.after(3000, command_window.destroy)

def start_current_increase(self):
self.current_indicator.configure(bg=“yellow”) #Set current indicator to working
#Current increase process for 30 seconds
timer = 30
while timer > 0:
self.timer_label.configure(text=“Таймер: {} секунд до Iзап. - 800A”.format(timer))
time.sleep(1)
timer -= 1
self.current_indicator.configure(bg=“green”) #Set current indicator to on

def start_transition_process(self):
self.current_indicator.configure(bg=“yellow”) #Set current indicator to working
#Transition process for 30 seconds, increasing I by 4
timer = 30
while timer > 0:
self.timer_label.configure(text=“Таймер: {} секунд в процессе перехода”.format(timer))
time.sleep(1)
timer -= 1
self.current_indicator.configure(bg=“green”) #Set current indicator to on

def start_increased_power(self):
self.current_indicator.configure(bg=“yellow”) #Set current indicator to working
#Increased power process for 30 seconds
timer = 30
while timer > 0:
self.timer_label.configure(text=“Таймер: {} секунд увеличения активной мощности”.format(timer))
time.sleep(1)
timer -= 1
self.current_indicator.configure(bg=“green”) #Set current indicator to on

def start_increased_vibrations(self):
self.vibration_indicator.configure(bg=“yellow”) #Set vibration indicator to working
#Increased vibrations process for 30 seconds, increasing vibrations by 3
timer = 30
while timer > 0:
self.timer_label.configure(text=“Таймер: {} секунд увеличения вибраций”.format(timer))
time.sleep(1)
timer -= 1
self.vibration_indicator.configure(bg=“green”) #Set vibration indicator to on

def turn_off_high_voltage_switch(self):
self.switch_indicator.configure(bg=“red”) #Set switch indicator to off
self.current_indicator.configure(bg=“red”) #Set current indicator to off
self.vibration_indicator.configure(bg=“red”) #Set vibration indicator to off
#Turn off high voltage switch for 40 seconds, with timer display
timer = 40
while timer > 0:
self.timer_label.configure(text=“Таймер: {} секунд до выключения”.format(timer))
time.sleep(1)
timer -= 1
self.current_indicator.configure(bg=“grey”) #Set current indicator to off
self.timer_label.configure(text=“”)

def reset(self):
self.switch_indicator.configure(bg=“grey”) #Set switch indicator to off
self.current_indicator.configure(bg=“grey”) #Set current indicator to off
self.vibration_indicator.configure(bg=“grey”) #Set vibration indicator to off
self.timer_label.configure(text=“”) #Clear timer label

root = tk.Tk()
app = Application(master=root)
app.mainloop()