2

I need to develop a program that has a spreadsheetlike input interface. I found that some tutorials use wx.Grid widget and some use wx.lib.sheet. What is the main difference between those two methods?

wx.lib.sheet tutorial

wx.grid tutorial

4

1 回答 1

2

wx.lib.sheet.CSheet extends wx.grid.Grid class and provides few additional helpful methods like Copy, Paste (copy and paste cell(s)). Plus, it has customized CellEditor, which behaves more like your excel spreadsheet in terms of mouse clicking, keyboard events.

So, if I were you, I'd go with CSheet.

于 2013-04-29T09:09:15.050 回答