我正在用 python3 编写一个小应用程序,我需要在屏幕上显示一些文本旁边的图像。
from tkinter import *
...
img = PhotoImage(file = './arr.png')
...
textARR=Label(screen, image=img, text=arr,font="TimesNewRoman 16",fg="yellow",bg="#1c1c1c")
...
textARR.place(x=410,y=430)
之后,会打开一个窗口,其中包含真实大小的图片。告诉我如何将它移动到特定坐标并设置大小。
您可以像这样更改大小: