Skip to main content

('A customizable Tkinter-based text console widget, in which a user types in commands to be sent to the Python interpreter.',)

Project description

text_console

A customizable Tkinter-based text console widget with support for command history and interactive execution, in which a user types in commands to be sent to the Python interpreter.

It includes options for overriding specific variables through subclassing, by extending the TextConsole class.

The package is installable via pip.

Features

  • Tkinter-based package.
  • Full multi-line commands support.
  • Customizable history file.
  • Context menu with options for Cut, Copy, Paste, and Clear.
  • Extendable for additional functionality.

The package provides flexibility to customize:

  • history_file: Change the location of the history file
  • console_locals: Add custom variables and functions to the console's namespace
  • context_menu_items: Modify the right-click context menu
  • show_about_message: Customize the about dialog content
  • show_help_content: Customize the help window content
  • create_menu: Override to completely customize the menu bar

Each of these can be customized by subclassing TextConsole and overriding the appropriate attributes or methods.

Full information and usage details at the text_console GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text_console-2.0.2.tar.gz (17.5 kB view details)

Uploaded Source

File details

Details for the file text_console-2.0.2.tar.gz.

File metadata

  • Download URL: text_console-2.0.2.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for text_console-2.0.2.tar.gz
Algorithm Hash digest
SHA256 681e94e4204324f46ebde916d101f592ef80b7f9de3551a33045ec8d05ac6692
MD5 adce003d24c0ac30c7365f5166dca8d2
BLAKE2b-256 943f7b08ce0de4bf5d83bbb0a35e091b7cbb9130106a85bb5a9cb2b54b0eeb8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page