Hi,
I created a wx.grid and set a cell’s editor to wx.grid.GridCellChoiceEditor so that it will display a drop down combo box to enter values.
sampleList = [“Value_1”, “Value_2”]
self.choice_editors = {}
self.choice_editors[“new”] = {}
self.choice_editors[“new”][“editor_1”] = wx.grid.GridCellChoiceEditor(sampleList)
self.my_grid.SetCellEditor(0, 0, self.choice_editors[“new”][“editor_1”])
When I try to get the current value of the cell that has GridCellChoiceEditor:
selection= self.choice_editors[“new”][“editor_1”].GetValue()
the program crashes with following error:
Process finished with exit code -1073740771 (0xC000041D)
What is the proper way of getting values from a wx.grid.GridCellChoiceEditor()?
···
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/063e9f73-554f-4455-b4ef-9bd0839269fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.