mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2026-01-07 03:40:11 +01:00
Update README.md
This commit is contained in:
@@ -208,7 +208,6 @@ radio3.set_group(radio1)
|
|||||||
You can handle the toggle signal like this:
|
You can handle the toggle signal like this:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
radio1 = Gtk.CheckButton(label="test")
|
|
||||||
radio1.connect("toggled", self.radio_toggled)
|
radio1.connect("toggled", self.radio_toggled)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -216,7 +215,6 @@ When connecting a signal its helpful to pass additional paramiters like as follo
|
|||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
radio1 = Gtk.CheckButton(label="test")
|
|
||||||
radio1.connect("toggled", self.radio_toggled, "test")
|
radio1.connect("toggled", self.radio_toggled, "test")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user