Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以wx.GridSizer在调用后获得单个单元格的大小Fit()。如果是这样,我该怎么做?
wx.GridSizer
Fit()
item = sizer.GetItem(index) size = item.GetSize()
如何找到项目的索引?从文档中,
项目按照添加的顺序放置在网格的单元格中,按行优先顺序排列。换句话说,首先填充第一行,然后填充第二行,依此类推,直到添加了所有项目。(如有必要,将在添加项目时添加其他行。)