1. 这儿说它们是一样的(http://effbot.org/tkinterbook/wm.htm#wm.Wm.wm_attributes-method):
attributes(*args) [#]
Sets or gets window attributes. In Python 2.4, this wrapper is incomplete, and the application must use a non-standard syntax to modify and query the available attributes.
Same as wm_attributes.
2. toolwindow=
(Windows) If set, sets the window style to a “tool window”. Note that in this release, this attribute must be given as “-toolwindow”.
不知道“tool window”是什么,也许版本间有变化,我这儿没法测试。可以试试用attributes()不带参数,可以得到所有的attributes,看看toolwindow是否在其中。如果你不需要的话,把这句去掉也可以。