2024-02-12 10:04:48 +00:00
|
|
|
## Developing GTK4 Applications
|
2023-11-25 00:55:01 +00:00
|
|
|
|
|
|
|
|
2024-02-12 10:04:48 +00:00
|
|
|
## Demos
|
|
|
|
Adw has a demo application showing all widgets. You can run it by executing:
|
2023-11-25 00:55:01 +00:00
|
|
|
```bash
|
2024-02-12 10:04:48 +00:00
|
|
|
adwaita-1-demo
|
2023-11-25 00:55:01 +00:00
|
|
|
```
|
2024-02-12 10:04:48 +00:00
|
|
|
GTK4 has a demo application showing all widgets. You can run it by executing:
|
2023-11-25 00:55:01 +00:00
|
|
|
```bash
|
2024-02-12 10:04:48 +00:00
|
|
|
gtk4-widget-factory
|
2023-11-25 00:55:01 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2023-11-28 09:23:49 +00:00
|
|
|
|
2023-11-25 00:55:01 +00:00
|
|
|
|
|
|
|
## Links
|
2024-02-12 10:04:48 +00:00
|
|
|
- [Adw PyGobject Reference](http://lazka.github.io/pgi-docs/index.html#Adw-1)
|
|
|
|
- [GTK4 PyGobject Reference](http://lazka.github.io/pgi-docs/index.html#Gtk-4.0)
|
|
|
|
- [Adw Widget Gallery](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/widget-gallery.html)
|
|
|
|
- [Python + GTK3 Tutorial](https://python-gtk-3-tutorial.readthedocs.io/en/latest/textview.html)
|
2023-11-25 00:55:01 +00:00
|
|
|
|
|
|
|
|
2023-12-16 14:00:43 +00:00
|
|
|
|
|
|
|
## Debugging Style and Layout
|
|
|
|
|
2024-02-12 10:04:48 +00:00
|
|
|
You can append `--debug` flag to enable debug logging printed into the console.
|
|
|
|
|
2023-12-16 14:00:43 +00:00
|
|
|
```bash
|
2024-02-12 10:04:48 +00:00
|
|
|
# Enable the GTK debugger
|
2023-12-16 14:00:43 +00:00
|
|
|
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true
|
|
|
|
|
|
|
|
# Start the application with the debugger attached
|
2024-02-12 10:04:48 +00:00
|
|
|
GTK_DEBUG=interactive ./bin/clan-vm-manager --debug
|
2023-12-16 14:00:43 +00:00
|
|
|
```
|