使用 Tk.protocol 时,参数可以是“WM_DELETE_WINDOW”、“WM_SAVE_YOURSELF”和“WM_TAKE_FOCUS”</p>
但是还有没有其他的。
具体来说,在我的程序中,我想创建一个跟随另一个窗口的窗口
root = Tk()
root.config(width = 100, height = 100
a = Tk()
a.overredirect()
#here I just make window stand below bottom left corner of original window
#I succeded in doing that, but it is not ellegant at all and partially functional
#does anybody knows how to do it better
#note: this is not the main problem
a.geometry('%ix40+%s+%s' % (180,
int(g[g.index('+')+1:g.rindex('+')]) + 8,
int(g[g.rindex('+')+1:]) + 51 +
int(g[g.index('x')+1:g.index('+')])))
如果root在屏幕上移动,在这里我应该让“a”跟随“root”
我的实际问题还有哪些其他协议,或者我在哪里可以找到它们