Update README.md

This commit is contained in:
Taiko2k authored and GitHub committed 2023-05-26 19:06:45 +12:00
1 parent 6d417bc396
commit d87b5f4ed4
1 file changed
+2
+2
View File
@@ -225,6 +225,8 @@ You can handle the toggle signal like this:
radio1.connect("toggled", self.radio_toggled)
```
Replace `self.radio_toggled` with your own function.
When connecting a signal it's helpful to pass additional parameters like as follows. This way you can have one function handle events from multiple widgets. Just don't forget to handle
the extra parameter in your handler function.