如何在Tkinter应用程序中更改图标的大小

时间:2020-05-27 10:22:56

标签: python tkinter icons

我有一张图像,尺寸为304x105(比高宽宽),但是当我在Tkinter应用程序中将其作为图标添加时,图像缩小并且无法正确显示

Top left side of the application you can see some words that are illegible

这是我到目前为止所写的(与图标有关)

  def set_icon(self):
        img = tk.Image("photo", file="icon.gif")
        self.tk.call('wm', 'iconphoto', self._w, img)

0 个答案:

没有答案