[ python-Bugs-1259434 ] Tix CheckList 'radio' option cannot be changed

SourceForge.net noreply at sourceforge.net
Mon Aug 15 03:09:08 CEST 2005


Bugs item #1259434, was opened at 2005-08-14 20:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1259434&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tkinter
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Maple (ray_maple)
Assigned to: Martin v. Löwis (loewis)
Summary: Tix CheckList 'radio' option cannot be changed

Initial Comment:
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')



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1259434&group_id=5470


More information about the Python-bugs-list mailing list