mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2026-01-07 11:50:24 +01:00
Update README.md
This commit is contained in:
@@ -99,8 +99,8 @@ Most basic layout is a [Box](https://docs.gtk.org/gtk4/class.Box.html).
|
|||||||
Lets add a box to the window! (Where the code comment "*things will go here*" is above)
|
Lets add a box to the window! (Where the code comment "*things will go here*" is above)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
self.box = Gtk.Box()
|
self.box1 = Gtk.Box()
|
||||||
self.set_child(self.box)
|
self.set_child(self.box1)
|
||||||
```
|
```
|
||||||
|
|
||||||
We make a new box, and attach it to the window. Simple. If you run the app now you'll see no difference, because there's nothing in the layout yet either.
|
We make a new box, and attach it to the window. Simple. If you run the app now you'll see no difference, because there's nothing in the layout yet either.
|
||||||
|
|||||||
Reference in New Issue
Block a user