# HG changeset patch # User jfp <jf.pieronne@laposte.net> # Date 1719985602 -7200 # Wed Jul 03 07:46:42 2024 +0200 # Node ID 45242ed2a75c17d9e6d01bf1f2f3e1224d0d6950 # Parent ef8bc7b08af7424caa30ceb295b425e71ced88d4 Fix prototype and docstring for smg.read_string diff --git a/python/local/ovms_module/ovms/rtl/smg/__init__.py b/python/local/ovms_module/ovms/rtl/smg/__init__.py --- a/python/local/ovms_module/ovms/rtl/smg/__init__.py +++ b/python/local/ovms_module/ovms/rtl/smg/__init__.py @@ -1305,18 +1305,18 @@ def read_string( self, - prompt_string: str | None = None, + prompt_string: bytes | str | None = None, maximum_length: int | None = None, modifiers: int | None = None, timeout: int | None = None, terminator_set: int | None = None, display: Display | None = None, - initial_string: str | None = None, + initial_string: bytes | str | None = None, rendition_set: int | None = None, rendition_complement: int | None = None, ) -> Tuple[str, int, bytes]: """Reads a string from the virtual keyboard. - Returns resultant-string, resultant-length, word-terminator-code, + Returns resultant-string, word-terminator-code, terminator-string.""" if self.kid is None: raise ValueError("keyboard is closed")