tags:

views:

17

answers:

1

I'm wondering if I could get the size of an individual cell of a wx.GridSizer after calling Fit(). If so, how do I do that?

+1  A: 
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.)

Steven Sproat