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 ray_maple
Recipients
Date 2005-08-15.01:09:08
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The 'radio' option to the Tix.CheckList widget cannot
be set.  Attempting to change the option during widget
creation results in the following error:

_tkinter.TclError: cannot assigned to static variable
"-radio"

The radio option is declared static in the Tix tcl
library, and must be set at widget creation time.  The
radio option is not included in the list of static
options passed to TixWidget.__init__ from
CheckList.__init__ in file Tix.py. 

Solution:

Add 'radio' to the list of static options passed to
TixWidget.__init__ in Tix.py.  Output from diff -C 1:

*** 1562,1564 ****
          TixWidget.__init__(self, master, 'tixCheckList',
!                            ['options'], cnf, kw)
          self.subwidget_list['hlist'] =
_dummyHList(self, 'hlist')
--- 1562,1564 ----
          TixWidget.__init__(self, master, 'tixCheckList',
!                            ['options','radio'], cnf, kw)
          self.subwidget_list['hlist'] =
_dummyHList(self, 'hlist')

History
Date User Action Args
2008-01-20 09:58:07adminlinkissue1259434 messages
2008-01-20 09:58:07admincreate