Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tk emergency

4 views
Skip to first unread message

Carl Youngblood

unread,
Dec 14, 2003, 12:50:26 AM12/14/03
to
I'm trying to code up a quick app with an urgent deadline and I'm having
trouble with a TkListbox. I have two listboxes in my app, and whenever
I make a selection in one of them, the one that lost focus loses its
selection. I need them to keep their selections even when they lose
focus. There has to be a simple way to do this, but I'm new to Tk and
don't know how to do it.

Thanks for the help.

Carl Youngblood

Mike Hall

unread,
Dec 14, 2003, 10:06:17 PM12/14/03
to
Carl Youngblood wrote:

>I'm trying to code up a quick app with an urgent deadline and I'm having
>trouble with a TkListbox. I have two listboxes in my app, and whenever
>I make a selection in one of them, the one that lost focus loses its
>selection. I need them to keep their selections even when they lose
>focus.

This might help, from the standard Tk documentation:

Command-Line Name: -exportselection Database Name: exportSelection Database Class: ExportSelection Specifies whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by Tcl_GetBoolean, such as true, false, 0, 1, yes, or no. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.

0 new messages