2022年11月16日 星期三

Python GUI 標籤 Label ---- EX2.17 , 2.18

 # ch2_17.py

from tkinter import *

root = Tk()

root.title("ch2_17")

label=Label(root,text="raised",relief="raised")

label.pack()

root.mainloop()


# ch2_18.py

from tkinter import *

root = Tk()

root.title("ch2_18")

label=Label(root,text="raised",relief="raised",

            bg="lightyellow",

            padx=5,pady=10)

label.pack()

root.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...