from tkinter import *
#創建主窗口
win = Tk()
win.config(bg='#8DB6CD')
win.title("Python Tkinter")
win.geometry('400x300')
win.iconbitmap('t1.ico')
txt = "Python Tkinter,網址是:https://alex9ufoexploer.blogspot.com/search/label/python%20Tkinter"
msg = Message (win, text=txt,width =120,font=('微軟雅黑',10,'bold'))
msg .pack (side=LEFT)
#開始程式迴圈
win .mainloop ()
沒有留言:
張貼留言