diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2024-03-01 15:37:08 -0800 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2024-03-01 15:37:08 -0800 |
commit | 38bcd7a436a823ce41bf2fc438907274043b2ce3 (patch) | |
tree | 37436851cdb3c6faa8744a391bb4b484647f7243 /panel.py | |
parent | f87ef86275d077cb45ee546fb53efd2334f43318 (diff) | |
download | panel-38bcd7a436a823ce41bf2fc438907274043b2ce3.tar.gz panel-38bcd7a436a823ce41bf2fc438907274043b2ce3.tar.xz |
add centring module
Diffstat (limited to 'panel.py')
-rwxr-xr-x | panel.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -96,6 +96,12 @@ class ModText(Mod): buf = Fmt.bg(bg, buf) self.out = buf +class ModCentre(Mod): + def __init__(self, **kwargs): + kwargs.setdefault('spacing', 0) + super().__init__(**kwargs) + self.out = '%{c}' + class ModRight(Mod): def __init__(self, **kwargs): kwargs.setdefault('spacing', 0) |