我正在尝试将句子(欢迎货币转换器)放在顶部,但无法成功。
import tkinter as tk
my_window = tk.Tk()
photo = tk.PhotoImage(file='currency conventer.png')
background_window = tk.Label(my_window,
text='Welcome\nCurrency Converter',
image=photo,
compound=tk.CENTER,
font=('Calibri',20,'bold italic'),
fg='black')
background_window.pack()
my_window.mainloop()