Skip to content

A minimal text editor made in Tkinter with native support for running and evaluating Python statements for editing.

License

Notifications You must be signed in to change notification settings

ageneric/tkinter-edit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tkinter-edit

A basic text editor made in Tkinter.

Features:

  • Word count and character count, both including and excluding newlines.
  • Run and evaluate Python statements on the text for fast editing.

Usage

  • A home file will be opened on start (tkinter_edit_save.txt).
  • Save, create and open files using the toolbar menu.
  • Files are not written to disk until they are saved using the toolbar menu or the hotkey Ctrl+S.

Advanced Usage

  • Run Python statements using the toolbar menu. Warning: This application permits arbitrary and unlimited execution of Python statements.

  • Statements that evaluate to a string will replace the text content. t or text contains the current text. For example, to replace all instances of 'cat' with 'dog' in the entire text, run:

t.replace('cat', 'dog')
  • Any other result will be outputted to the console standard output.

  • The modules attribute has been hard-coded and allows functions from other modules to be run from the Run menu. See the docstring for App.run_module for further details.

  • The character count starts from the position set in the toolbar menu and automatically terminates at the symbol ---.

About

A minimal text editor made in Tkinter with native support for running and evaluating Python statements for editing.

Topics

Resources

License

Stars

Watchers

Forks

Languages