Menu

#9 Use the -listvariable option for $lbvarname and $lbvarval listboxes

open
nobody
None
Wish
optional
non-debugger
all
all
sometimes
2015-10-09
2010-10-12
No

Use the -listvariable option for $lbvarname and $lbvarval listboxes

  • this could automate a lot of sync work with watchvars and watchvarsprops

  • this could fix a Tcl bug I had once (but could not reproduce) when removing a variable from the watch window. Happened with scicoslab 4.4 (pre-release dated 9 déc 09), scipad 8.32.BP1. No autowatch mode was used but variables have been edited: listofrays watched, then edit, listofrays(1) watched, then remove, or something close

    can't unset "watchvarsprops(listofrays,value)": no such element in array
    can't unset "watchvarsprops(listofrays,value)": no such element in array
        while executing
    "unset watchvarsprops($var,value)"
        (procedure "syncwatchvarsfromlistbox" line 5)
        invoked from within
    "syncwatchvarsfromlistbox"
        invoked from within
    ".scipad.watch.f.vpw.f2.f2l.buttonRemove invoke"
        ("uplevel" body line 1)
        invoked from within
    "uplevel #0 [list $w invoke]"
        (procedure "tk::ButtonUp" line 24)
        invoked from within
    "tk::ButtonUp .scipad.watch.f.vpw.f2.f2l.buttonRemove"
        (command bound to event)
    

Discussion

  • Francois VOGEL

    Francois VOGEL - 2015-10-09
    • Status: open --> accepted
     
  • Francois VOGEL

    Francois VOGEL - 2015-10-09
    • Status: accepted --> open
     

Anonymous
Anonymous

Add attachments
Cancel