swaplist - A dialog which allows a user to move options between two lists
This package provides a dialog which consists of 2 listboxes, along with buttons to move items between them and reorder the right list.
Creates a dialog which presents the user with a pair of listboxes. Items are selected by using the buttons to move them to the right list. The contents of the right list are put in the variable upon closure of the dialog. The command returns a boolean indicating if the user pressed OK or not. If -geometry is not specified, the dialog is centered in its parent toplevel unless its parent is . in which case the dialog is centered in the screen.
Options:
package require swaplist namespace import swaplist::* if {[swaplist .slist opts "1 2 3 4 5 6 7 8 9" "1 3 5"]} { puts "user chose numbers: $opts" }
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category swaplist of the Tklib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.
Widget