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



沒有留言:

張貼留言

WOKWI ESP32 LED Control , Node-Red MQTT SQLITE  

WOKWI ESP32 LED Control ,  Node-Red  MQTT SQLITE   const char broker[] = "test.mosquitto.org" ; //const char broker[] = "br...