Well what i would do is make a hell of a lot of buttons.. well only 32, then i would use a loop to make a list of all of them something like:
for f in range(64):
buttons.append(wx.Button(self, wx.ID_ANY, label = str(f)))
That takes care of making the buttons. Then i would make sizers!
horsizers = []
mainsizer = wx.BoxSizer(wx.VERTICAL)
index = 0
for f in range(8):
size = wx.BoxSizer()
for g in range(8):
size.Add(buttons[index], proportion = 0)
index += 1
horsizers.append(size)
for size in horsizers:
mainsizer.Add(size, proportion = 0)
self.SetSizer(mainsizer)
That just gives a general outline of how to do this... im not actually sure if it works.