Menu

#32 Errors from container widgets.

open
tkinspect (16)
7
2014-10-03
2005-09-12
Pat Thoyts
No

dzach 10-Sep-2005: I kept getting these can't modify
-container option after widget is created errors
whenever I tried to send a value containing a
-container option. So here is a change to the
windows_list.tcl file that adds a send filter for the
-container option:

At line 46 insert:

    $slot\(menu\) add checkbutton \
    -variable \[object\_slotname filter\_window\_container\] \
        -label "Filter Window -container Options"

and then just before the return at the end:

if $slot\(filter\_window\_container\) \{
    regsub -all "\(\n\)\\\[ \t\\\]\*-container\\\[ \t\\\]+\\\[^

\\\n\]*\n?" $value \ "\\1" value
}

Discussion


Log in to post a comment.