// Tkinter doesn"t allow colour icons on linux systems, but tk>=8.5
// has a iconphoto command which we call directly. Source:
// http://mail.python.org/pipermail/tkinter-discuss/2006-November/000954.html
icon_fname = os.path.join(
rcParams["datapath"], "images", "matplotlib.ppm")
icon_img = tk.PhotoImage(file=icon_fname, master=window)
try:
window.iconphoto(False, icon_img)
except Exception as exc:
After Change
// Tkinter doesn"t allow colour icons on linux systems, but tk>=8.5
// has a iconphoto command which we call directly. Source:
// http://mail.python.org/pipermail/tkinter-discuss/2006-November/000954.html
icon_fname = str(cbook._get_data_path("images/matplotlib.ppm"))
icon_img = tk.PhotoImage(file=icon_fname, master=window)
try:
window.iconphoto(False, icon_img)
except Exception as exc: