The Tk wm attributes command takes option arguments (from the Tk wm manual page): wm attributes window ?option value option value...? And option arguments are normally given with keyword arguments in Tkinter (most if not all widget creation functions and widget commands). The attached patch changes the wm_attributes method to take keyword arguments, so top.wm_attributes(alpha=.8) will work as expected (on Windows XP and Mac OS X).
Logged In: YES user_id=797929 I do not have winXP or OSX available to actually test it, but I doubt that top.wm_attributes('alpha',.8) will work; from Tk documentation it looks like you will have to write top.wm_attributes('-alpha',.8) which is in fact not what one would expect. Maybe a better solution than Greg's patch was to change wm_attributes() to accept both ways, like: def wm_attributes(self, *args, **kw): args = ('wm', 'attributes', self._w) + args + self._options({}, kw) return self.tk.call(args) so that old code will not break and the more intuitive version that Greg suggested is also legal.