From f952c55b7d7d4e0a784a22434b2fa86f3f7a79b7 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Thu, 6 Jan 2022 23:36:30 +1000 Subject: [PATCH] Coding style. - Name the sections of fill3. --- fill3/fill3/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fill3/fill3/__init__.py b/fill3/fill3/__init__.py index 2c5ebfc..0a898ad 100755 --- a/fill3/fill3/__init__.py +++ b/fill3/fill3/__init__.py @@ -16,6 +16,9 @@ import termstr __version__ = "v2022.01.05" +########################## +# Widgets + def appearance_is_valid(appearance): return (all(isinstance(line, (str, termstr.TermStr)) and len(line) > 0 for line in appearance) and len(set(len(line) for line in appearance)) < 2) @@ -407,7 +410,7 @@ class Fixed: ########################## - +# Infrastructure _EXCEPTION = None _LAST_APPEARANCE = [] @@ -492,8 +495,9 @@ async def tui(title, screen_widget): if _EXCEPTION is not None: raise _EXCEPTION -########################## +########################## +# Example application class _Screen: