summaryrefslogtreecommitdiff
path: root/examples/bigtext.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bigtext.py')
-rwxr-xr-xexamples/bigtext.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/bigtext.py b/examples/bigtext.py
index 6a088ea..2a19fe3 100755
--- a/examples/bigtext.py
+++ b/examples/bigtext.py
@@ -17,12 +17,14 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-# Urwid web site: http://excess.org/urwid/
+# Urwid web site: https://urwid.org/
"""
Urwid example demonstrating use of the BigText widget.
"""
+from __future__ import annotations
+
import urwid
import urwid.raw_display
@@ -58,7 +60,7 @@ class BigTextDisplay:
return w
def create_disabled_radio_button(self, name):
- w = urwid.Text(" " + name + " (UTF-8 mode required)")
+ w = urwid.Text(f" {name} (UTF-8 mode required)")
w = urwid.AttrWrap(w, 'button disabled')
return w
@@ -110,7 +112,7 @@ class BigTextDisplay:
chosen_font_rb.set_state(True) # causes set_font_event call
# Create Edit widget
- edit = self.create_edit("", "Urwid "+urwid.__version__,
+ edit = self.create_edit("", f"Urwid {urwid.__version__}",
self.edit_change_event)
# ListBox