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 LED + MQTT Node-Red SQLite

WOKWI LED + MQTT Node-Red SQLite const char *mqtt_broker = "broker.mqtt-dashboard.com" ; const char *topic1 = "alex9ufo/e...