Python 3 tkinter iconbitmap error in ubuntu

前端 未结 7 2134
既然无缘
既然无缘 2021-01-02 02:12

Well I have this:

import tkinter
gui = tkinter.Tk()
gui.iconbitmap(default=\'/home/me/PycharmProjects/program/icon.ico\')
gui.mainloop()`

B

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-02 03:00

    I had to convert to an XBM format and use the following root.iconbitmap('@imagename.xbm') however my platform is Ubuntu and I discovered my os theme has no spot for he image....

提交回复
热议问题