开发者

How do I get the size of an individual cell of a wx.GridSizer?

I'm wondering if I could get the size of an individual cell of a wx.GridS开发者_JAVA百科izer after calling Fit(). If so, how do I do that?


item = sizer.GetItem(index)
size = item.GetSize()

How to find the item's index? From the documentation,

Items are placed in the cells of the grid in the order they are added, in row-major order. In other words, the first row is filled first, then the second, and so on until all items have been added. (If neccessary, additional rows will be added as items are added.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜