1
- [ ![ Sourcecode on GitHub] ( https://img.shields.io/badge/Paebbels-pyTerminalUI -323131.svg?logo=github&longCache=true )] ( https://github .com/Paebbels/pyTerminalUI )
2
- [ ![ Sourcecode License] ( https://img.shields.io/pypi/l/pyTerminalUI ?logo=GitHub&label=code%20license )] ( LICENSE.md )
3
- [ ![ GitHub tag (latest SemVer incl. pre-release)] ( https://img.shields.io/github/v/tag/Paebbels/pyTerminalUI ?logo=GitHub&include_prereleases )] ( https://github .com/Paebbels/pyTerminalUI /tags )
4
- [ ![ GitHub release (latest SemVer incl. including pre-releases)] ( https://img.shields.io/github/v/release/Paebbels/pyTerminalUI ?logo=GitHub&include_prereleases )] ( https://github .com/Paebbels/pyTerminalUI /releases/latest )
5
- [ ![ GitHub release date] ( https://img.shields.io/github/release-date/Paebbels/pyTerminalUI ?logo=GitHub )] ( https://github .com/Paebbels/pyTerminalUI /releases )
6
- [ ![ Dependents (via libraries.io)] ( https://img.shields.io/librariesio/dependents/pypi/pyTerminalUI ?logo=librariesdotio )] ( https://github .com/Paebbels/pyTerminalUI /network/dependents )
7
- [ ![ GitHub Workflow - Build and Test Status] ( https://img.shields.io/github/workflow/status/Paebbels/pyTerminalUI /Unit%20Testing,%20Coverage%20Collection,%20Package,%20Release,%20Documentation%20and%20Publish?label=Pipeline&logo=GitHub%20Actions&logoColor=FFFFFF )] ( https://github .com/Paebbels/pyTerminalUI /actions/workflows/Pipeline.yml )
8
- [ ![ Codacy - Quality] ( https://img.shields.io/codacy/grade/e8a1b6e33d564f82927235e17fb26e93?logo=Codacy )] ( https://www.codacy.com/manual/Paebbels/pyTerminalUI )
9
- [ ![ Codacy - Coverage] ( https://img.shields.io/codacy/coverage/e8a1b6e33d564f82927235e17fb26e93?logo=Codacy )] ( https://www.codacy.com/manual/Paebbels/pyTerminalUI )
10
- [ ![ Codecov - Branch Coverage] ( https://img.shields.io/codecov/c/github/Paebbels/pyTerminalUI ?logo=Codecov )] ( https://codecov.io/gh/Paebbels/pyTerminalUI )
11
- [ ![ Libraries.io SourceRank] ( https://img.shields.io/librariesio/sourcerank/pypi/pyTerminalUI ?logo=librariesdotio )] ( https://libraries.io/github/Paebbels/pyTerminalUI /sourcerank )
12
- [ ![ PyPI] ( https://img.shields.io/pypi/v/pyTerminalUI ?logo=PyPI&logoColor=FBE072 )] ( https://pypi.org/project/pyTerminalUI / )
13
- ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/pyTerminalUI ?logo=PyPI&logoColor=FBE072 )
14
- ![ PyPI - Status] ( https://img.shields.io/pypi/status/pyTerminalUI ?logo=PyPI&logoColor=FBE072 )
15
- [ ![ Libraries.io status for latest release] ( https://img.shields.io/librariesio/release/pypi/pyTerminalUI ?logo=librariesdotio )] ( https://libraries.io/github/Paebbels/pyTerminalUI )
16
- [ ![ Requires.io] ( https://img.shields.io/requires/github/Paebbels/pyTerminalUI )] ( https://requires.io/github/Paebbels/pyTerminalUI /requirements/?branch=main )
1
+ [ ![ Sourcecode on GitHub] ( https://img.shields.io/badge/pyTooling-pyTooling.TerminalUI -323131.svg?logo=github&longCache=true )] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI )
2
+ [ ![ Sourcecode License] ( https://img.shields.io/pypi/l/pyTooling.TerminalUI ?logo=GitHub&label=code%20license )] ( LICENSE.md )
3
+ [ ![ GitHub tag (latest SemVer incl. pre-release)] ( https://img.shields.io/github/v/tag/pyTooling/pyTooling.TerminalUI ?logo=GitHub&include_prereleases )] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI /tags )
4
+ [ ![ GitHub release (latest SemVer incl. including pre-releases)] ( https://img.shields.io/github/v/release/pyTooling/pyTooling.TerminalUI ?logo=GitHub&include_prereleases )] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI /releases/latest )
5
+ [ ![ GitHub release date] ( https://img.shields.io/github/release-date/pyTooling/pyTooling.TerminalUI ?logo=GitHub )] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI /releases )
6
+ [ ![ Dependents (via libraries.io)] ( https://img.shields.io/librariesio/dependents/pypi/pyTooling.TerminalUI ?logo=librariesdotio )] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI /network/dependents )
7
+ [ ![ GitHub Workflow - Build and Test Status] ( https://img.shields.io/github/workflow/status/pyTooling/pyTooling.TerminalUI /Unit%20Testing,%20Coverage%20Collection,%20Package,%20Release,%20Documentation%20and%20Publish?label=Pipeline&logo=GitHub%20Actions&logoColor=FFFFFF )] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI /actions/workflows/Pipeline.yml )
8
+ [ ![ Codacy - Quality] ( https://img.shields.io/codacy/grade/e8a1b6e33d564f82927235e17fb26e93?logo=Codacy )] ( https://www.codacy.com/manual/pyTooling/pyTooling.TerminalUI )
9
+ [ ![ Codacy - Coverage] ( https://img.shields.io/codacy/coverage/e8a1b6e33d564f82927235e17fb26e93?logo=Codacy )] ( https://www.codacy.com/manual/pyTooling/pyTooling.TerminalUI )
10
+ [ ![ Codecov - Branch Coverage] ( https://img.shields.io/codecov/c/github/pyTooling/pyTooling.TerminalUI ?logo=Codecov )] ( https://codecov.io/gh/pyTooling/pyTooling.TerminalUI )
11
+ [ ![ Libraries.io SourceRank] ( https://img.shields.io/librariesio/sourcerank/pypi/pyTooling.TerminalUI ?logo=librariesdotio )] ( https://libraries.io/github/pyTooling/pyTooling.TerminalUI /sourcerank )
12
+ [ ![ PyPI] ( https://img.shields.io/pypi/v/pyTooling.TerminalUI ?logo=PyPI&logoColor=FBE072 )] ( https://pypi.org/project/pyTooling.TerminalUI / )
13
+ ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/pyTooling.TerminalUI ?logo=PyPI&logoColor=FBE072 )
14
+ ![ PyPI - Status] ( https://img.shields.io/pypi/status/pyTooling.TerminalUI ?logo=PyPI&logoColor=FBE072 )
15
+ [ ![ Libraries.io status for latest release] ( https://img.shields.io/librariesio/release/pypi/pyTooling.TerminalUI ?logo=librariesdotio )] ( https://libraries.io/github/pyTooling/pyTooling.TerminalUI )
16
+ [ ![ Requires.io] ( https://img.shields.io/requires/github/pyTooling/pyTooling.TerminalUI )] ( https://requires.io/github/pyTooling/pyTooling.TerminalUI /requirements/?branch=main )
17
17
[ ![ Read the Docs] ( https://img.shields.io/readthedocs/pyterminalui?label=ReadTheDocs&logo=readthedocs )] ( https://pyTerminalUI.readthedocs.io/ )
18
- [ ![ Documentation License] ( https://img.shields.io/badge/doc%20license-CC--BY%204.0-green?logo=readthedocs )] ( LICENSE.md )
19
- [ ![ Documentation - Read Now!] ( https://img.shields.io/badge/doc-read%20now%20%E2%9E%94 -blueviolet?logo=readthedocs )] ( https://pyTerminalUI.readthedocs .io/ )
18
+ [ ![ Documentation License] ( https://img.shields.io/badge/doc%20license-CC--BY%204.0-green?logo=readthedocs )] ( doc/Doc-License.rst )
19
+ [ ![ Documentation - Read Now!] ( https://img.shields.io/badge/doc-read%20now%20%E2%9E%9A -blueviolet?logo=readthedocs )] ( https://pyTooling.GitHub .io/pyTooling.TerminalUI )
20
20
21
- # pyTerminalUI
21
+ # pyTooling.TerminalUI
22
22
23
23
A set of helpers to implement a text user interface (TUI) in a terminal.
24
24
@@ -62,11 +62,11 @@ from pathlib import Path
62
62
from pyTooling.TerminalUI import LineTerminal, ILineTerminal
63
63
64
64
class SubModule (ILineTerminal ):
65
- def __init__ (self , configFile , terminal ):
65
+ def __init__ (self , configFile : Path , terminal ):
66
66
super ().__init__ (terminal)
67
67
68
68
if not configFile.exists():
69
- self .WriteError(" Config file '{0 !s } ' not found." .format(configFile) )
69
+ self .WriteError(f " Config file ' { configFile } ' not found. " )
70
70
71
71
72
72
class Application (LineTerminal ):
@@ -87,8 +87,8 @@ if __name__ == "__main__":
87
87
88
88
## Contributors
89
89
90
- * [ Patrick Lehmann] ( https://github .com/Paebbels ) (Maintainer)
91
- * [ and more...] ( https://github .com/Paebbels/pyTerminalUI /graphs/contributors )
90
+ * [ Patrick Lehmann] ( https://GitHub .com/Paebbels ) (Maintainer)
91
+ * [ and more...] ( https://GitHub .com/pyTooling/pyTooling.TerminalUI /graphs/contributors )
92
92
93
93
94
94
## License
0 commit comments