From niv@nivparsons@gmail.com to comp.lang.vhdl on Sat Feb 18 05:28:34 2023
From Newsgroup: comp.lang.vhdl
I generate a set of entry widgets & checkboxes as below:
##----------------------------------------------------------------------------- ## Labels & Entry for MultiBlock Rows 1 to 10 ##----------------------------------------------------------------------------- ## Grid placement for all the rows ##----------------------------------------------------------------------------- for {set xxx 0} {$xxx < 10} {incr xxx} {
label $f4a.lb_TIM_$xxx -text "Time" -font {Arial 8 bold} -background white -foreground black
label $f4a.lb_SPC_$xxx -text " " -font {Arial 8 bold}
entry $f4a.enMINS_$xxx -textvar MB_mins_$xxx -width 2 -validate all -vcmd {ValidInt %P}
entry $f4a.enSECS_$xxx -textvar MB_secs_$xxx -width 2 -validate all -vcmd {ValidInt %P}
entry $f4a.enPWR_$xxx -textvar MB_power_$xxx -width 3 -validate all -vcmd {ValidInt %P}
entry $f4a.enCAD_$xxx -textvar MB_cad_$xxx -width 3 -validate all -vcmd {ValidInt %P}
checkbutton $f4a.cbSEL_$xxx -var MB_sel_$xxx -background white -foreground red
All that works fine, generating 10 rows each with 4 entries & a checkbox, so 50 data points.
I cannot see to pass all that info to the procedure that works on the data except to pass all 50 individually, which is not great & pretty inelegant!
Is there a nice clean way to pass the data to the proc?
TIA, Kev P.
--- Synchronet 3.21d-Linux NewsLink 1.2
Who's Online
Recent Visitors
Geek2
Sun May 17 07:06:15 2026
from
Euclid, Oh
via
Telnet
Geek2
Sat May 16 21:25:04 2026
from
Euclid, Oh
via
Telnet
Jas Hud
Sat May 16 00:50:28 2026
from
Bbs.Eob-Bbs.Com,wi
via
Telnet
Geek2
Fri May 15 19:53:20 2026
from
Euclid, Oh
via
Telnet