标签: python tkinter icons
我有一张图像,尺寸为304x105(比高宽宽),但是当我在Tkinter应用程序中将其作为图标添加时,图像缩小并且无法正确显示:
这是我到目前为止所写的(与图标有关)
def set_icon(self): img = tk.Image("photo", file="icon.gif") self.tk.call('wm', 'iconphoto', self._w, img)