2022年11月16日 星期三

Python GUI EX1.3 , 1.4

# ch1_3.py

from tkinter import *


root = Tk()

root.configure(bg='#00ff00')    # 視窗背景顏色

root.iconbitmap("mystar.ico")   # 更改圖示

root.mainloop()



# ch1_4.py

from tkinter import *


root = Tk()

root.geometry("300x160+400+200")     # 距離螢幕左上角(400,200)

root.mainloop()



沒有留言:

張貼留言

ESP32 and Node-RED with MQTT (Publish and Subscribe)

  ESP32 and Node-RED with MQTT (Publish and Subscribe) 參考來源  https://randomnerdtutorials.com/esp8266-and-node-red-with-mqtt/ mqtt_server = ...