summaryrefslogtreecommitdiffstats
path: root/examples/full-screen/text-editor.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/full-screen/text-editor.py')
-rwxr-xr-xexamples/full-screen/text-editor.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/full-screen/text-editor.py b/examples/full-screen/text-editor.py
index 9c0a414..7fb6b0b 100755
--- a/examples/full-screen/text-editor.py
+++ b/examples/full-screen/text-editor.py
@@ -2,6 +2,7 @@
"""
A simple example of a Notepad-like text editor.
"""
+
import datetime
from asyncio import Future, ensure_future
@@ -53,10 +54,7 @@ def get_statusbar_text():
def get_statusbar_right_text():
- return " {}:{} ".format(
- text_field.document.cursor_position_row + 1,
- text_field.document.cursor_position_col + 1,
- )
+ return f" {text_field.document.cursor_position_row + 1}:{text_field.document.cursor_position_col + 1} "
search_toolbar = SearchToolbar()