def clickerdo(value):
global clicks
global autoclickersfirst
global autoclickersfirstcount
global autoclickersfirstprice
global autoclickersfirstbank
if value == 0.0:
if clicks <= autoclickersfirstprice:
fclicker.config(text="Недостаточно \nмонет!")
root.after(2000, fclicker.config(text=check(autoclickersfirst)))
if clicks >= autoclickersfirstprice:
autoclickersfirstcount = 100
fclicker.config(text="Успешно!")
root.after(2000, fclicker.config(text=check(autoclickersfirst)))
elif value == 1.0:
fclicker.config(text="Успешно!")
clicks += autoclickersfirstbank
root.after(2000, fclicker.config(text=check(autoclickersfirst)))
firsto()
fclicker = Button(upframe, text=check(autoclickersfirst), command = clickerdo(autoclickersfirst))
fclicker.pack(side = LEFT)
Возникает:
File "main.py", line 146, in <module>
fclicker = Button(upframe, text=check(autoclickersfirst), command = clickerdo(autoclickersfirst))
File "main.py", line 141, in clickerdo
fclicker.config(text="Успешно!")
NameError: name 'fclicker' is not defined