Skip to main content

Create multilingual interfaces for your tkinter applications.

Project description

tkintergui Create multilingual interfaces for your tkinter applications.

tkintergui leverages Tk's tkintergui to provide a per-instance message catalog which holds all the translations, while allowing them to be kept in separate files away from code.

⏬ Installation tkintergui requires Python 3.7+

pip install tkintergui ✨ Getting Started For storing the translation files I recommend this folder hierarchy:

project (or src/project) ├── init.py └── gui ├── init.py ├── hi.msg └── mr.msg This layout is recommended by Tcl.

Add some translations in the .msg files, in this case hi.msg:

::tkintergui::mcset hi "Hello" Create a Tkinter window or instance, technically.

Let's put tkintergui into action!

from pathlib import Path

msgsdir = Path(file).parent / "msgs" load(msgsdir) locale("hi") get("Hello") 🤝 Contributing All contributions are welcome and acknowledged. Please read the contributor's guide.

© License The code in this project is released under the 3-Clause BSD License.

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

tkinter-gui-1.3.5.tar.gz (190.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tkinter_gui-1.3.5-py3-none-any.whl (191.3 kB view details)

Uploaded Python 3

File details

Details for the file tkinter-gui-1.3.5.tar.gz.

File metadata

  • Download URL: tkinter-gui-1.3.5.tar.gz
  • Upload date:
  • Size: 190.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.0

File hashes

Hashes for tkinter-gui-1.3.5.tar.gz
Algorithm Hash digest
SHA256 2cc24301d88e5261e86b2bd8eaba5072e7c2761cfe270e803d567bc3d5fc4eda
MD5 a065d2d7e6468dd2da10c91205c07b36
BLAKE2b-256 17efb93b48e16af90a2fa2358c29ee2de61f70c24e29ca672a9d0041cedede2f

See more details on using hashes here.

File details

Details for the file tkinter_gui-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: tkinter_gui-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 191.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.0

File hashes

Hashes for tkinter_gui-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e9926bf04f01c9328368aa3f4849e592699c3bcc1295b57e60f8260a122a5e03
MD5 942c537b23db977f0cd8ac527763f876
BLAKE2b-256 7015a8e6af2c88afdf84d51e3ebd17672bb414e1e15a7af269070267c5acb8cb

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