The icon created by the
example program
This somewhat hackish module can be used to set the
NET_WM_ICON for your Tkinter application.
The included example.py file is, well, an example. You have to do the work of
computing the value of the property, then pass the Tk toplevel window and the
bytestring representation of the property to _tk_seticon.seticon().
Not all window managers support NET_WM_ICON; Metacity does in Fedora Core 2,
while icewm 1.2.20 doesn't. It uses only the old WM_HINTS bitmap and mask.
Files currently attached to this page: