2022年11月16日 星期三

Python GUI 標籤 Label ----L3

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 ()



沒有留言:

張貼留言

2026 作業4 WOKWI ESP32 DHT22+4LED & Node-Red , Telegram , MQTT 練習

2026 作業4   WOKWI ESP32 DHT22+4LED & Node-Red , Telegram , MQTT 練習 Node-Red Telegram 設定需修改  TOKEN API  與 CHATID  才會指向你的Telegram   IoT 遠端控...