【发布时间】:2021-01-30 14:26:58
【问题描述】:
当我单击 p 时,我正在尝试切换 tkinter 窗口的可见性。
toggle = True
if keyboard.is_pressed('p'):
toggle = not toggle
if toggle:
app.wm_attributes("-alpha", 0)
else:
app.wm_attributes("-alpha", 1)
【问题讨论】:
标签: python user-interface tkinter