Skip to content

Commit

Permalink
Clean fmt documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Dec 5, 2023
1 parent 0632d78 commit 76e33b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libqtile/widget/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,9 @@ class _TextBox(_Widget):
(
"fmt",
"{}",
"To format the string returned by the widget. For example, if the clock widget \
returns '08:46' we can do fmt='time {}' do print 'time 08:46' on the widget. \
To format the individual strings like hour and minutes use the format paramater \
of the widget (if it has one)",
"Format to apply to the string returned by the widget. Main purpose: applying markup. "
"For a widget that returns ``foo``, using ``fmt='<i>{}</i>'`` would give you ``'<i>foo</i>'``. "
"To control what the widget outputs in the first place, use the ``format`` paramater of the widget (if it has one).",
),
("max_chars", 0, "Maximum number of characters to display in widget."),
(
Expand Down

0 comments on commit 76e33b7

Please sign in to comment.