Skip to content

TkConsole is a custom console widget for Tkinter, providing a terminal-like interface for text output, user input, and copy/paste operations.

License

Notifications You must be signed in to change notification settings

eftalgezer/TkConsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TkConsole

PyPI version PyPI pyversions Python package codecov Codacy Badge PyPI download month PyPI download week PyPI download day GitHub all releases GitHub contributors CodeFactor Codacy Badge PyPI license

TkConsole is a Python library that provides a customizable terminal-like console widget using the Tkinter GUI framework.

Installation

TkConsole can be installed using pip:

pip install SIESTAstepper

# to make sure you have the latest version
pip install -U SIESTAstepper

# latest available code base
pip install -U git+https://github.com/eftalgezer/TkConsole.git

Tutorial

Building an interactive console interface with TkConsole

Usage

To use TkConsole in your Python application, you can follow these steps:

import tkinter as tk
from TkConsole import Console

root = tk.Tk()
console = Console(root)
console.pack(expand=True, fill="both")

console.print("Hello, world!")
user_input = console.input("Enter something: ")
console.print(f"You entered: {user_input}")

root.mainloop()

Features

  • Customizable font, background, and foreground colors
  • Printing text to the console
  • Taking user input
  • Copy and paste functionality

Unit Tests

TkConsole comes with a comprehensive set of unit tests to ensure its functionality. To run the tests, navigate to the tests directory and execute tests.py:

cd tests
python tests.py

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU General Public License v3.0

About

TkConsole is a custom console widget for Tkinter, providing a terminal-like interface for text output, user input, and copy/paste operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages