[elbe-devel] [PATCH v2 28/75] button: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Wed Nov 2 20:14:10 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/debianize/widgets/button.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/debianize/widgets/button.py b/elbepack/debianize/widgets/button.py
index 6e9663a9f..fff974898 100644
--- a/elbepack/debianize/widgets/button.py
+++ b/elbepack/debianize/widgets/button.py
@@ -30,7 +30,7 @@ class Button(WidgetWrap):
@callback: The callback to call when the button is clicked.
"""
- widget = LineBox(AttrMap(Text("[{}]".format(text), align="center"),
+ widget = LineBox(AttrMap(Text(f"[{text}]", align="center"),
"default", palette))
super(Button, self).__init__(widget)
connect_signal(self, TUISignal.CLICK, callback)
--
2.38.1
More information about the elbe-devel
mailing list