func _on_CheckButton_toggled(button_pressed):
if button_pressed:
$CheckButton.set_pressed(false)
else:
$CheckButton.set_pressed(true)
This function is connected with the toggled signal of the checkbutton. But when I click on the checkbutton, this error happens on the debugger:
Stack Overflow (Stack Size: 1024)