phoenix_title wx.grid.GridBlocks

Represents a collection of grid blocks that can be iterated over.

This class provides read-only access to the blocks making up the grid selection in the most general case.

Note that objects of this class can only be returned by wx.grid.Grid, but not constructed in the application code.

The preferable way to iterate over it is using C++11 range-for loop: When not using C++11, iteration has to be done manually:

New in version 4.1/wxWidgets-3.1.4.


class_hierarchy Class Hierarchy

Inheritance diagram for class GridBlocks:

method_summary Methods Summary

__iter__

Returns a Python iterator for acessing the collection of grid blocks.

begin

Return iterator corresponding to the beginning of the range.

end

Return iterator corresponding to the end of the range.


api Class API

class wx.grid.GridBlocks(object)

Represents a collection of grid blocks that can be iterated over.


Methods

__iter__(self)

Returns a Python iterator for acessing the collection of grid blocks.



begin(self)

Return iterator corresponding to the beginning of the range.

Return type

wx.grid.GridBlocks.iterator



end(self)

Return iterator corresponding to the end of the range.

Return type

wx.grid.GridBlocks.iterator