|
|
int
|
row_count(self)
get (max) number of rows in the grid |
source code
|
|
int
|
col_count(self)
get (max) number of columns in the grid |
source code
|
|
int
|
count(self)
get total number of cells in the grid (which is rows*cols) |
source code
|
|
|
resize(self,
rows,
cols)
resize grid by specifying new number of rows and columns |
source code
|
|
(float,float,float,float)
|
item(self,
row,
col)
get rect of cell at position row,col |
source code
|
|
(float,float,float,float)
|
item_seq(self,
k,
column_wise=False)
get rect of cell at position k column-wise or row-wise |
source code
|
|
(float,float,float,float),...
|
items(self,
column_wise=False)
get sequence of rects of cells column-wise or row-wise |
source code
|
|
(float,float,float,float),...
|
row_items(self,
row)
get sequence of cell rects of a row |
source code
|
|
(float,float,float,float),...
|
col_items(self,
col)
get sequence of cell rects of a column |
source code
|
|
(float,float,float,float)
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|