wxComboBox in wxGrid?

Hi

I am new to wxPython.
Is it possible to add a wxComboBox control in a cell in wxGrid ?
Any examples would be helpful. Thanks!

···

--
Gnanasekaran Thoppae
gnana@gnana.net

Gnanasekaran Thoppae wrote:

Hi
I am new to wxPython. Is it possible to add a wxComboBox control in a cell in wxGrid ? Any examples would be helpful. Thanks!

Use a wxGridCellChoiceEditor, something like this:

  ed = wxGridCellChoiceEditor(["choice one", "choice two"])
  grid.SetCellEditor(row, col, ed)

Or it can be managed by using datatypes in a custom table object, as shown in the GridCustTable sample.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!