tkinter
窗口
import tkinter as tk    # 引入tkinter库,并取个别名(即外号)tk
root = tk.Tk()          # 创建窗口
root.mainloop()         # 窗口循环显示
属性设置
root['bg'] = 'red'      # 背景色,或root['background'] = 'red'
root['height'] = 700     # 窗口的高
root['width'] = 1000      # 窗口的宽
root['highlightthickness'] = 100    # 加亮区域的宽度
root['highlightcolor'] = 'yellow'   # 设置加亮区域在 有焦点 时的颜色
root['highlightbackground'] = 'black' # 设置加亮区域在 无焦点 时的颜色
常用方法
标题设置
root.title('你好')
移除窗口栏
root.overrideredirect(True)