Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to place a combobox in wxgrid (python)?

I can't find any good information on how to place a combobox inside a cell in a wxgrid. I tried Google, but maybe I'm blind. Anyone have a simple sample to share?

like image 837
Niclas Nilsson Avatar asked Oct 15 '25 16:10

Niclas Nilsson


1 Answers

Take a look at GridChoiceCellEditor. You can use it as follows:

    choice_editor = wx.grid.GridCellChoiceEditor(choices_list, True) 
    grid.SetCellEditor(row, col, choice_editor)
like image 122
Vader Avatar answered Oct 18 '25 06:10

Vader



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!