views:

356

answers:

1

The tcl/tk widget iwidgets::combobox with a terrible flaw: when the list goes away, the focus goes away from the gui so you can't type in entry boxes unless you move the mouse out of the gui and back in.

This problem has been noted in other places, but I have not seen any solution.
a. is there a way to re-gain focus before exiting the command (-command option)? b. is there a better combobox widget available? I have tried BWidgets' ComboBox but can't get that to work.... I don't want to have to build my own.

+3  A: 

As of Tcl/Tk 8.5, there is a combobox widget built into the core language as part of the Tile set of widgets. The command is ttk::combobox. You can download a prebuilt version of Tcl/Tk from ActiveState, at:

http://www.activestate.com/activetcl/

For more information, see the documentation here:

http://docs.activestate.com/activetcl/8.5/tcl/TkCmd/ttk_combobox.htm

HTH,

Eric Melski

Eric Melski