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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cc24301d88e5261e86b2bd8eaba5072e7c2761cfe270e803d567bc3d5fc4eda
|
|
| MD5 |
a065d2d7e6468dd2da10c91205c07b36
|
|
| BLAKE2b-256 |
17efb93b48e16af90a2fa2358c29ee2de61f70c24e29ca672a9d0041cedede2f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9926bf04f01c9328368aa3f4849e592699c3bcc1295b57e60f8260a122a5e03
|
|
| MD5 |
942c537b23db977f0cd8ac527763f876
|
|
| BLAKE2b-256 |
7015a8e6af2c88afdf84d51e3ebd17672bb414e1e15a7af269070267c5acb8cb
|