iwidgets::disjointlistbox(1)
β¨ NAME β¨
okay so you're reading iwidgets::disjointlistbox(1), the manual page from the [incr Widgets] set, and it's literally about one thing:
iwidgets::disjointlistbox β create and manipulate a disjointlistbox widget π
π SYNOPSIS π
iwidgets::disjointlistbox pathName ?options?
π¦ INHERITANCE π¦
itk::Widget <- iwidgets::Disjointlistbox
π STANDARD OPTIONS π
Here's the whole standard-options lineup, no skips:
activeBackground, selectBorderWidth, selectForeground, activeForeground, activeRelief, background, borderWidth, buttonPlacement, clientData, cursor, foreground, highlightColor, highlightThickness, disabledForeground, elementBorderWidth
See the options manual entry for the deets on all of those standard options. π
π ASSOCIATED OPTIONS π
These ones are borrowed from other widgets, and they come in little friend groups:
lhsButtonLabel,rhsButtonLabelβ see thebuttonwidget manual entry for details on the above associated options.labelFont,lhsLabelText,rhsLabelTextβ see thelabelwidget manual entry for details on the above associated options.jump,troughColorβ see thescrollbarwidget class manual entry for details on the above associated options.textBackground,textFont,lhsItems,rhsItemsβ see thescrolledlistboxwidget manual entry for details on the above associated options.
π WIDGET-SPECIFIC OPTIONS π
These are the ones this widget calls its own, and yes, every single one is here:
- Name:
buttonPlacementClass:ButtonPlacementCommand-Line Switch:-buttonplacement
Specifies the placement of the insertion and removal buttons relative to the scrolledlistbox widgets β the original page writes that list out as widgetsn, bottom, or center, which is lowkey garbled, but the values in play are bottom and center. The default is bottom.
- Name:
lhsLabelTextClass:LabelTextCommand-Line Switch:-lhslabeltext
Specifies the text for the label of the lhs scrolledlistbox. The default is "Available".
- Name:
rhsLabelTextClass:LabelTextCommand-Line Switch:-rhslabeltext
Specifies the text for the label of the rhs scrolledlistbox. The default is "Available".
- Name:
lhsButtonLabelClass:LabelTextCommand-Line Switch:-lhsbuttonlabel
Specifies the text for the button of the lhs scrolledlistbox. The default is "Insert >>".
- Name:
rhsButtonLabelClass:LabelTextCommand-Line Switch:-rhsbuttonlabel
Specifies the text for the button of the rhs scrolledlistbox. The default is "<< Remove".
- Name:
lhsSortOptionClass:LhsSortOptionCommand-Line Switch:-lhssortoption
Specifies the sort function to be applied to the lhs scrolledlistbox after items are inserted. Accepts the same sort options as the scrolledlistbox sort method (Tcl's lsort command). If "none" is specified, the inserted items are appended to the end of the list, and no sorting is performed. The default is "increasing".
- Name:
rhsSortOptionClass:RhsSortOptionCommand-Line Switch:-rhssortoption
Specifies the sort function to be applied to the rhs scrolledlistbox after items are inserted. Accepts the same sort options as the scrolledlistbox sort method (Tcl's lsort command). If "none" is specified, the inserted items are appended to the end of the list, and no sorting is performed. The default is "increasing".
π«Ά DESCRIPTION π«Ά
The iwidgets::disjointlistbox command creates a disjoint pair of listboxs, similar to the OSF/Motif "Book" printing dialog from the "FrameMaker" program. Structure-wise, its implementation consists of two Scrolledlistboxs, 2 buttons, and 2 labels. β¨
The disjoint behavior of this widget lives in how the two Scrolledlistboxes interact with each other. Like β a given instance of a Disjointlistbox will never exist, without the aid of a hack magician, which has Scrolledlistbox widgets with items in common. That means the relationship between the two is maintained similar to that of disjoint sets. π§
Users may transfer items between the two Listbox widgets using the the two buttons. (Two "the"s, iconic, we keep it.)
Options exist which include the ability to configure the "items" displayed by the 2 Scrolledlistboxes and to control the placement of the insertion and removal buttons. π
β METHODS β
The iwidgets::disjointlistbox command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
Option and the args determine the exact behavior of the command. The following commands are possible for disjointlistbox widgets:
π₯ WIDGET-SPECIFIC METHODS π₯
pathName cgetoption β Returns the current value of the configuration option given by option. Option may have any of the values accepted by theiwidgets::disjointlistboxcommand.pathName configure?option? ?value option value ...? β Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (seeTk_ConfigureInfofor information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by theiwidgets::disjointlistboxcommand.pathName setlhsβ Set the current contents of the left-most Scrolledlistbox with the input list of items. Removes all (if any) items from the right-most Scrolledlistbox which exist in the input list option to maintain the disjoint property between the twopathName setrhsβ Set the current contents of the right-most Scrolledlistbox with the input list of items. Removes all (if any) items from the left-most Scrolledlistbox which exist in the input list option to maintain the disjoint property between the twopathName getlhsβ Returns the current contents of the left-most ScrolledlistboxpathName getrhsβ Returns the current contents of the right-most ScrolledlistboxpathName insertlhsβ Add the input list of items to the current contents of the left-most Scrolledlistbox. Removes all (if any) items from the right-most Scrolledlistbox which exist in the input list option to maintain the disjoint property between the twopathName insertrhsβ Add the input list of items to the current contents of the right-most Scrolledlistbox. Removes all (if any) items from the left-most Scrolledlistbox which exist in the input list option to maintain the disjoint property between the two.
π§ COMPONENTS π§
- Name:
lhsClass:Scrolledlistbox
The lhs component is the scrolledlistbox for the rhs button. See the "scrolledlistbox" widget manual entry for details on the lhs component item.
- Name:
rhsClass:Scrolledlistbox
The rhs component is the scrolledlistbox for the rhs button. See the "scrolledlistbox" widget manual entry for details on the rhs component item.
- Name:
lhsbuttonClass:utton
The lhsbutton component is the button for users to remove selected items from the lhs Scrolledlistbox. See the "button" widget manual entry for details on the lhs button component. (Yes, the class is written as utton on the original page. We do not touch it. π«‘)
- Name:
rhsbuttonClass:Button
The rhsbutton component is the button for users to remove selected items from the rhs Scrolledlistbox. See the "button" widget manual entry for details on the rhs button component.
- Name:
lhsCountClass:Label
The lhsCount component is the label for displaying a count of the current items in the Scrolledlistbox. See the "Label" widget manual entry for details on the lhsCount label component.
- Name:
rhsCountClass:Label
The rhsCount component is the label for displaying a count of the current items in the Scrolledlistbox. See the "Label" widget manual entry for details on the rhsCount label component.
πΈ EXAMPLE πΈ
package require Iwidgets 4.0 iwidgets::disjointlistbox .dlb pack .dlb
-padx 10 -pady 10 -fill both -expand yes
π AUTHOR(S) π
John A. Tucker Anthony Parent
π KEYWORDS π
disjointlistbox, widget
and that's the whole page, bestie π«Ά it shipped out under Tk with the page name iwidgets::disjointlistbox(1) sitting right there in the footer β go build something disjoint, ily, periodt πβ¨π
π¦ where this page comes from
- debian bookworm: iwidgets4-doc 4.1.1-2.1
- debian trixie: iwidgets4-doc 4.1.1-4
- ubuntu jammy: iwidgets4-doc 4.1.1-2.1
- ubuntu noble: iwidgets4-doc 4.1.1-2.1
- ubuntu resolute: iwidgets4-doc 4.1.1-4
- ubuntu stonking: iwidgets4-doc 4.1.1-4
- Copyright (c) 1995 DSC Technologies Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms