BWidget ListBox - more ?s

BWidget ListBox - more ?s

Post by davidhbige » Thu, 11 Aug 2005 22:25:08


This is an interesting little diddy.

package require BWidget
--> 1.7
pack [ListBox .lb]
.lb configure -selectmode single
.lb cget -selectmode
--> none

???? what am I missing here...
 
 
 

BWidget ListBox - more ?s

Post by Damon Cour » Thu, 11 Aug 2005 23:07:15

The -selectmode option of the BWidget ListBox is a readonly option.
Meaning that you can specify its value when the listbox is created, but
after it's been created, all attempts to change it will simply do
nothing.

BWidgets differs from Tk in this respect. Tk will respond with an
error if an option you're trying to configure cannot be configured
after widget creation. BWidget just silently ignores you.

(bin) 49 % package require BWidget
1.7
(bin) 50 % ListBox .l -selectmode single
.l
(bin) 51 % .l cget -selectmode
single

Hope that helps!

Damon

 
 
 

BWidget ListBox - more ?s

Post by davidhbige » Thu, 11 Aug 2005 23:26:34

Yes - thanks...

I like the drag & drop capability of the widgets - but man these seem
to be a pain for the basics...

Dave