A DoubleTableList is an Itcl widget for displaying two TableLists with arrows between them for moving items back and forth or up and down. You can access the left and right TableLists as itk components left and right . This widget is used in the same way as the DoubleList widget, but is better suited for tabular data that should be formatted in columns. The left and right components are instances of the TableList(n) widget class.
# create the DoubleTableList itk_component add dtlist { DoubleTableList $w_.dtlist \ -lefttitle "Keep" \ -righttitle "Don't Keep" \ -hscroll 1 \ -updown 1 \ -selectmode extended } pack $itk_component(dtlist) -fill both -expand 1 set headings {User Password UID GID Name Home Shell} set info {} set fd [open /etc/passwd] while {[gets $fd buf] != -1} { lappend info [split $buf :] } $itk_component(dtlist) config \ -headings $headings \ -leftinfo $info \ -rightinfo {}
See DoubleTableList(n) for more details.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory