mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2025-07-21 20:51:10 +02:00
Fix adding label alongside switch
This commit is contained in:
@@ -261,7 +261,7 @@ A label is like a basic line of text
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
self.label = Gtk.Label(label="A switch")
|
self.label = Gtk.Label(label="A switch")
|
||||||
self.switch_box.append(self.switch)
|
self.switch_box.append(self.label)
|
||||||
self.switch_box.set_spacing(5) # Add some spacing
|
self.switch_box.set_spacing(5) # Add some spacing
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user