Ico图标生成:图标(.ico)未在 Python中显示

关于Ico图标生成的问题,在ico pictures中经常遇到, 有谁知道为什么图标(.ico)图片没有显示?当我右键单击它时,它似乎指向正确的文件。

有谁知道为什么图标(.ico)图片没有显示?当我右键单击它时,它似乎指向正确的文件。

enter image description here

enter image description here

0

Q“有人知道为什么图标(.ico)图片没有显示吗?”

我可以确认几年前在 Linux / Win 生态系统的跨平台可移植 GUI 系统上经常使用.iconbitmap()方法。

@ DapperDuck 假设似乎被硬编码到__doc__字符串中:

>>> print root.iconbitmap.__doc__
Set bitmap for the iconified widget to BITMAP. Return
        the bitmap if None is given.
        Under Windows, the DEFAULT parameter can be used to set the icon
        for the widget and any descendents that don't have an icon set
        explicitly.  DEFAULT can be the relative path to a .ico file
        (example: root.iconbitmap(default='myicon.ico') ).  See Tk
        documentation for more information.

所以要参考 Mac 特定的文档。

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(644)
Alter table:ALTER TABLE添加约束
上一篇
Msie:Curl/python请求发送请求并绕过<!-用于禁用MSIE和Chrome友好错误页面的填充->
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(61条)