diff options
Diffstat (limited to 'ptlayout.py')
-rw-r--r-- | ptlayout.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ptlayout.py b/ptlayout.py index 07266b3..219052e 100644 --- a/ptlayout.py +++ b/ptlayout.py @@ -132,6 +132,22 @@ class PTLContainer(PTLayoutElem): def add(self, child): self._children.append(child) +class PTLHSpace(PTLContainer): + def __init__(self): + super(PTLHSpace, self).__init__() + self.spacing = '5' + + def prep_size(self, hh): + return (int(self.spacing), 0) + + def render(self, cctx, h): + return int(self.spacing) + + def properties(self): + return [ + ('spacing', 'text'), + ] + class PTLHSeq(PTLContainer): def __init__(self): super(PTLHSeq, self).__init__() |