Index: Lib/lib-tk/Tkinter.py =================================================================== --- Lib/lib-tk/Tkinter.py (revision 63916) +++ Lib/lib-tk/Tkinter.py (working copy) @@ -1065,7 +1065,10 @@ nv.append(('{%s}' if ' ' in item else '%s') % item) else: v = ' '.join(nv) - res = res + ('-'+k, v) + + if k[0] != '-': + k = '-' + k + res = res + (k, v) return res def nametowidget(self, name): """Return the Tkinter instance of a widget identified by @@ -1433,7 +1436,7 @@ maxNumer, maxDenom)) aspect = wm_aspect - def wm_attributes(self, *args): + def wm_attributes(self, *args, **kwargs): """This subcommand returns or sets platform specific attributes The first form returns a list of the platform specific flags and @@ -1451,8 +1454,11 @@ On Unix, there are currently no special attribute values. """ - args = ('wm', 'attributes', self._w) + args - return self.tk.call(args) + d = ((arg, args[indx * 2 + 1]) for indx, arg in enumerate(args[::2])) + kwargs.update(dict(d)) + opts = self._options(kwargs) + + return self.tk.call('wm', 'attributes', self._w, *opts) attributes=wm_attributes def wm_client(self, name=None):