If I have a laptop with three spreadsheet widgets, what is the best way to change spreadsheet spreadsheets, update the dictionary (or maybe sqlite file?). Do all wx grid objects have a built-in dictionary associated with SetNumberRows and SetNumberCols? Basically I am looking for a guide on working with user data from a spreadsheet widget, as in this example, adapted from a tutorial on python.org:
class ExSheet(wx.lib.sheet.CSheet): def __init__(self, parent): sheet.CSheet.__init__(self, parent) self.SetLabelBackgroundColour('#CCFF66') self.SetNumberRows(50) self.SetNumberCols(50) class Notebook(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title) nb = wx.Notebook(self, -1, style=wx.NB_BOTTOM) self.sheet1 = ExSheet(nb) self.sheet2 = ExSheet(nb) self.sheet3 = ExSheet(nb) nb.AddPage(self.sheet1, "Sheet1") nb.AddPage(self.sheet2, "Sheet2") nb.AddPage(self.sheet3, "Sheet3") self.sheet1.SetFocus() self.StatusBar()
source share