class _WriteHead:
Method | __init__ |
Example |
Instance Variable | grid |
Grid object |
Instance Variable | y |
int y coordinate, init 0 |
Instance Variable | x |
int x coordinate, init 0 |
Instance Variable | max_x |
Max x-index number including far left or right expansions |
Instance Variable | expand_left_index |
Index of left expander, -1 if unset |
Instance Variable | expand_right_index |
Index of right expander, -1 if unset |
Instance Variable | content_range |
2-Tuple with left most and right most column indices wrapping the content |
Method | measures |
Determine the current values for expand_left_index, expand_right_index, content_range, and max_x |
Method | is_in_content_range |
Is a given index number within the content range ? |
Method | gage |
Skip to the next free cell and set the y and x properties |
Example
grid.wh = _WriteHead() grid.wh.measures() grid.wh.gage() if grid.wh.is_in_content_range(2) : pass
Parameters | grid | required Grid object |