powered by
Two functions for listing "stock" icons, and adding "stock" icons. A stock icon can be referenced within gWidgets by its simple name, such as "ok" or "close".
addStockIcons(iconNames, iconFiles, ...,toolkit=guiToolkit())getStockIcons(..., toolkit=guiToolkit())
getStockIcons(..., toolkit=guiToolkit())
A vector of icon names
A matching vector of filenames for the icons
ignored
Which toolkit to use
The file type must be supported by the toolkit. The tcltk supports few filetypes without additional libraries.
tcltk
# NOT RUN { iconNames <- c("larrow","rarrow") iconFiles <= c("/usr/share/icons/larrow.png", "/usr/share/icons/rarrow.png") addStockIcons(iconNames, iconFiles) # }
Run the code above in your browser using DataLab