This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gpolo, serhiy.storchaka, terry.reedy
Date 2014-08-19.06:16:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408428974.08.0.266954995149.issue22226@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch refactors code which converts the result of Tcl call to Python dict. Added new private function _splitdict() which does this in more robust manner.

Also this patch fixes a bug in Treeview.heading(). The heading subcommand of ttk::treeview return options dict in which one key surprisingly was not '-' prefixed.

% ttk::treeview t
% .t heading #0
-text {} -image {} -anchor center -command {} state {}

Current code unconditionally cuts "s" from the "state" key.

>>> from tkinter import ttk
>>> t = ttk.Treeview()
>>> t.heading('#0')
{'anchor': 'center', 'tate': '', 'image': '', 'text': '', 'command': ''}
History
Date User Action Args
2014-08-19 06:16:14serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, gpolo
2014-08-19 06:16:14serhiy.storchakasetmessageid: <1408428974.08.0.266954995149.issue22226@psf.upfronthosting.co.za>
2014-08-19 06:16:13serhiy.storchakalinkissue22226 messages
2014-08-19 06:16:13serhiy.storchakacreate