TkTerminal
🌏 简体中文
TkTerminal is a terminal emulator written in Python using tkinter. It is quite easy to use.
Windows
MacOS
Features
- User can set the terminal widget with their own options
- Use \ to make new lines (On Windows it is &&)
- Command history recorder
- Styles
- And some on
Future ideas
- Highlight
Styles
tkterminalwidget also have some styles to use such as Powershell Command:
Installation:
pip install tktermwidget
Example:
from tkinter import Tk
from tkterm import Terminal
# Create root window
root = Tk()
# Hide root window during initialization
root.withdraw()
# Set title
root.title("Terminal")
# Create terminal
term = Terminal(root)
term.pack(expand=True, fill="both")
# Set minimum size and center app
# Update widgets so minimum size is accurate
root.update_idletasks()
# Get minimum size
minimum_width: int = root.winfo_reqwidth()
minimum_height: int = root.winfo_reqheight()
# Get center of screen based on minimum size
x_coords = int(root.winfo_screenwidth() / 2 - minimum_width / 2)
y_coords = int(root.wm_maxsize()[1] / 2 - minimum_height / 2)
# Place app and make the minimum size the actual minimum size (non-infringable)
root.geometry(f"{minimum_width}x{minimum_height}+{x_coords}+{y_coords}")
root.wm_minsize(minimum_width, minimum_height)
# Show root window
root.deiconify()
# Start mainloop
root.mainloop()
Metadata
Release files for tktermwidget 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tktermwidget-0.0.4.tar.gz | 6.2 kB | Without provenance | Details for tktermwidget-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tktermwidget-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for tktermwidget-0.0.4-py3-none-any.whl |
Total release size: 13.2 kB
Release files / tktermwidget-0.0.4.tar.gz
| Download URL | tktermwidget-0.0.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d8a9554f9bef011a17df81540efad910052690bcec322bbf3f259af25409764
|
|
BLAKE2b-256 checksum How to use checksums |
306580931d638e4b9d571d614f6a8a67e6975a094a64658c05d64a1f78ce5944
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / tktermwidget-0.0.4-py3-none-any.whl
| Download URL | tktermwidget-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc0a679435a1778f831e11f1acc882403d3ac586d743897e79b4d1d034583609
|
|
BLAKE2b-256 checksum How to use checksums |
70ca23284bccf70aee33378febeef8f7f3e68666a2d78168b2819fc60df8312a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for tktermwidget 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.