MCPcopy Create free account
hub / github.com/PageBot/PageBot / _get_gridY

Method _get_gridY

Lib/pagebot/elements/element.py:1867–1878  ·  view source on GitHub ↗

Answers the vertical grid, depending on the top/bottom orientation of self. >>> e = Element(gridY=(10,20,30)) >>> e.gridY (10pt, 20pt, 30pt) >>> e.gridY = 40, 50, 60 >>> e.gridY (40pt, 50pt, 60pt)

(self)

Source from the content-addressed store, hash-verified

1865 gridX = property(_get_gridX, _set_gridX)
1866
1867 def _get_gridY(self):
1868 """Answers the vertical grid, depending on the top/bottom orientation of
1869 self.
1870
1871 >>> e = Element(gridY=(10,20,30))
1872 >>> e.gridY
1873 (10pt, 20pt, 30pt)
1874 >>> e.gridY = 40, 50, 60
1875 >>> e.gridY
1876 (40pt, 50pt, 60pt)
1877 """
1878 return units(self.css('gridY'))
1879
1880 def _set_gridY(self, gridY):
1881 self.style['gridY'] = gridY # Save locally, blocking CSS parent scope for this param.

Callers

nothing calls this directly

Calls 2

cssMethod · 0.95
unitsFunction · 0.90

Tested by

no test coverage detected