2017年8月27日 星期日

Python 的內建 GUI 模組 Tkinter 建立視窗 -----Message Widget



from tkinter import *
master = Tk()
whatever_you_do = "Whatever you do will be insignificant, but it is very important that you do it.\n(Mahatma Gandhi)"
msg = Message(master, text = whatever_you_do)
msg.config(bg='lightgreen', font=('times', 24, 'italic'))
msg.pack( )
mainloop( )

沒有留言:

張貼留言