I want to use the systems default icons for known task (copy, cut, paste, filenew, fileopen, exit, help, ...). This depends on the current used icon set in the desktop environment and/or on the used operating system.
Does Python offer a plattform independed way to get such icons?
Here is some Tkinter-based pseudocode
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from tkinter import *
from tkinter import ttk
from PIL import *
root = Tk()
image = image.open(DEFAULT_COPY_ICON)
image = ImageTk.PhotoImage(image)
button = Button(master=root, text='Copy', image=image))
root.mainloop()
Python3 or Tkinter does not offer a way for this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With