I am working on a GUI. I use the gi module in Python. I want to add some icons to my GUI but I couldn't find a list of all icons with their corresponding names. Where can I find such a list? Is there a specific folder in my os where I can view them all?
2 Answers
You can set a widget to have a certain icon using the icon-name
property with admitted values the ones you find inside gtk3-icon-browser
(ex-gtk3-icon-viewer
):
Some widgets which support other properties (like label
for Gtk.Button
or stock
for Gtk.Image, now deprecated) accept as values the ones you find inside glade menus instead.
-
2
-
Note: gtk3-icon-browser is part of the gtk-3-examples package, so you install it using
sudo apt install gtk-3-examples
– DiederikCommented Mar 9, 2022 at 21:11
GTK icons are found in /usr/share/icons
. You can retrieve them with
find /usr/share/icons -type f -name '*.png' -o -name '*.svg' -o -name '*.xpm'
Pixmap icons can be found in /usr/share/pixmaps
,
find /usr/share/pixmaps -type f
-
2Thx for your answer. I found gtk3-icon-viewer which is what I looked for.– SaKuCommented Aug 13, 2020 at 14:21