合并wx.Grid中的adiacent细胞

问题描述:

合并wx.grid中的adiacent细胞是否可能?我的意思是水平的连续的单元格和垂直的单元格在一列中。合并wx.Grid中的adiacent细胞

有一种方法可以使文本跨越网格小部件中的多行或多列。在wxPython演示中有一个名为GridSimple.py的例子。见64-67行。他们阅读如下:

self.SetCellValue(9, 1, "This default cell will overflow into neighboring cells, but not if you turn overflow off."); 
self.SetCellSize(11, 1, 3, 3); 
self.SetCellAlignment(11, 1, wx.ALIGN_CENTRE, wx.ALIGN_CENTRE); 
self.SetCellValue(11, 1, "This cell is set to span 3 rows and 3 columns"); 

注意:您不需要分号。我不知道他们为什么在这个例子中。