godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Unable to bind button signal in python script

Open Teashrock opened this issue 7 years ago • 2 comments

Simply tried to connect a "pressed" signal from button and create a function for it automatically, but it continues to gave the same error. Screens here: https://i.imgur.com/wNcL3jA.png https://i.imgur.com/dMI4TFk.png https://i.imgur.com/z0RDG6O.png https://i.imgur.com/IE2F9AO.png

Teashrock avatar Aug 12 '18 18:08 Teashrock

There's more when I finally defined the function manually: https://i.imgur.com/Nfbca7t.png https://i.imgur.com/r5hvekZ.png

Godot just don't see it.

Teashrock avatar Aug 12 '18 18:08 Teashrock

Hi,

For me I started by having the issue in your first comment. Then I added it manually and it was Okay. I had the same issue as your second post but I fixed the indentation and I could use it afterwards.

image

image

mundusnine avatar Nov 13 '18 20:11 mundusnine