LMS知識社群歷程檔案Login
Position: 塗家瑜 > Python
視窗
by 塗家瑜 2021-05-04 10:22:44, Reply(0), Views(2)
import tkinter as tk
win=tk.Tk()
win.geometry('200x300')
win.title('第一個')
win.configure(bg='white')
tk.Label(win,text='Hello Label',font=('Times',24),bg='lightblue',fg='blue').pack()
tk.Label(win,text='Hello Label',font=('Times',24),bg='lightgreen',fg='black').pack()

win=tk.LabelFrame(win,text='your name:')
msg=('bilibilibalala')
tk.Label(win,text=msg,font=('Times',14)).pack()
win.mainloop()
Reply