summaryrefslogtreecommitdiff
path: root/panel.py
diff options
context:
space:
mode:
Diffstat (limited to 'panel.py')
-rwxr-xr-xpanel.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/panel.py b/panel.py
index 17c41ca..8a11f9e 100755
--- a/panel.py
+++ b/panel.py
@@ -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)