-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stock items are deprecated #78
Comments
Correct, stock icons are deprecated, but they are usually not displayed (as you can see in the screenshots). The advantage is that their text is automatically translated into the user's locale, which otherwise has to be done explicitly, i.e., manual use of gettext. Stock items are used in multiple examples: filechooserdialog_example.py, dialog_example.py and textview_example.py |
So what is the recommended way for dealing with icons? Lets say I want Cut, copy, and paste or Bold, italic, and underline. Or maybe a settings icon? |
@vanillajonathan Depends on the usage, if in a menu probably just don't have an icon but you can pack a box manually, If in a toolbar/header yo use named icons. |
http://python-gtk-3-tutorial.readthedocs.io/en/latest/iconview.html Where can I find a list of valid icon names that I can use? |
No. |
Thanks! :) I would like to request a online web reference of all named icons. But with the default set of GTK icons so you easier get a visual overview of what is available. |
I think recommending |
The file chooser example uses stock items for the open / cancel button, although these are deprecated.
The text was updated successfully, but these errors were encountered: