Saadmairaj / tkterminal

Terminal widget for Tkinter library.
https://pypi.org/project/tkterminal
Apache License 2.0
57 stars 6 forks source link
subprocess terminal tkinter

tkterminal

PyPI CodeFactor Downloads FOSSA Status Platform

This library gives Terminal widget support to the Tkinter library. Perform almost all the operations of a terminal with tkterminal.

demo_dark demo_light

Installation

Use the package manager pip to install with the following command:

pip install tkterminal

If you would like to get the latest master or branch from GitHub, you could also:

pip install git+https://github.com/Saadmairaj/tkterminal

Or even select a specific revision (branch/tag/commit):

pip install git+https://github.com/Saadmairaj/tkterminal@master

Usage

Terminal widget is easy to use. Type the commands just like you type in the terminal.

import tkinter as tk
from tkterminal import Terminal

root = tk.Tk()
terminal = Terminal(pady=5, padx=5)
terminal.pack(expand=True, fill='both')
root.mainloop()

Documentation

Terminal widget is created from the Tkinter Text widget class that makes it support all the options of a Text widget.

License