Код: Выделить всё
.
├── resources.gresource
├── resources.xml
├── texty.py
└── texty.svg
Код: Выделить всё
texty.svg
Код: Выделить всё
glib-compile-resources resources.xml --target=resources.gresource
Код: Выделить всё
resources = Gio.Resource.load('./resources.gresource')
Gio.resources_register(resources)
Код: Выделить всё
image = Gtk.Image.new_from_resource('/texty/texty.svg')
box.append(image)
Код: Выделить всё
about_dialog = Adw.AboutDialog.new()
about_dialog.set_application_name("texty")
about_dialog.set_application_icon("/texty/texty.svg")
about_dialog.present()
Подробнее здесь: https://stackoverflow.com/questions/790 ... -in-python