Arrera TK
Arrera TK is a Python library using Tkinter and CustomTkinter, with a custom theme inspired by Material 3 Expressive.
Themes available with the library
defaut(Default theme)blancblanc-grisbleubleu-blancbleu-violetgrisjauneorangeroserouge
Explanation of how themes work
To use an Arrera TK theme, simply pass its name as an argument when creating the main aTk window.
# Example of using a theme
app = aTk(theme="bleu")
By default, if no theme is specified, the defaut theme will be used. It is also still possible to load a custom theme from a .json file by passing the file path to the theme argument.
Installation
Via PyPI (Recommended)
To use Arrera TK, install the package via pip:
pip install arrera-tk
From the GitHub repository (Development version)
If you want to use the latest development version, you can install the library directly from GitHub:
pip install git+https://github.com/Arrera-Software/Arrera-TK.git
Usage
Import the necessary classes into your project:
from arrera_tk import aTk, aButton, aLabel
# Or import the whole module (not recommended for large projects)
# from arrera_tk import *
Methods details
Widgets
- aLabel: Basic label.
- aButton: Standard button.
- aCheckBox: Checkbox.
- aRadioButton: Radio button.
- aEntry: Text entry field.
- aText: Multiline text area.
- aTextScrollable: Text area with scrollbar.
- aEntryLengend: Entry field accompanied by a descriptive label.
- aOptionMenu: Dropdown menu.
- aOptionMenuLengend: Dropdown menu accompanied by a descriptive label.
- aHourPickers: Hour and minute selector.
- aSwicht: On/off switch.
- aImage: Widget to display images, with support for light and dark themes.
Containers (Frames)
- aFrame: Simple container with rounded corners.
- aScrollableFrame: Container with scrolling.
- aCanvas: Drawing area.
- aBackgroundImage: Container with a background image.
Windows
- aTk: Main application window. Manages the theme and icon.
- aTopLevel: Secondary window.
- windows_about: Pre-configured "About" window.
Utilities
- keyboad_manager: Utility to manage keyboard events (associate functions with keys).
Placement
Widgets inherit methods facilitating their positioning.
Place
These methods use place() with relative coordinates to position elements.
- Centered:
placeCenter() - Corners:
placeTopLeft(),placeTopRight(),placeBottomLeft(),placeBottomRight() - Centered Edges:
placeTopCenter(),placeBottomCenter(),placeLeftCenter(),placeRightCenter() - Specific:
placeCenterOnWidth(y): Centers horizontally at the given Y position.placeWidgetCenteredAtBottom(x_offset): Centers at the bottom with an optional X offset.placeLeftBottomNoStick(),placeRightBottomNoStick(),placeBottomCenterNoStick(): Places at the bottom (left, right, or center) with a 10px margin to avoid sticking to the edge.
Pack
These methods use pack() to stack elements. They accept xExpand (bool) and yExpand (bool) arguments to manage expansion in the corresponding directions.
pack(xExpand, yExpand): Standard pack.packLeft(xExpand, yExpand): Pack aligned to the left.packRight(xExpand, yExpand): Pack aligned to the right.packTop(xExpand, yExpand): Pack aligned to the top.packBottom(xExpand, yExpand): Pack aligned to the bottom.
Metadata
Release files for arrera-tk 3.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| arrera_tk-3.0.3.tar.gz | 18.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arrera_tk-3.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.1 kB
Release files / arrera_tk-3.0.3.tar.gz
| Download URL | arrera_tk-3.0.3.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf7883f8db71e1be6e6c47208eaf1f325351b22f02e5945eaa339f57d8bbedb2
|
|
BLAKE2b-256 checksum How to use checksums |
b53ca790e0b271b965b7ebb5d6e03f87b5620315404b8e46edc3218a67bffa6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / arrera_tk-3.0.3-py3-none-any.whl
| Download URL | arrera_tk-3.0.3-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
746f0ef3c64c111fef1f418905ed6a841f08c5fcca17b53b1cf4871ec3476e30
|
|
BLAKE2b-256 checksum How to use checksums |
47e076d3e5466d8a971116ff01af8f89fa0bd13017cd964017c9d0e697b476e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for arrera-tk 3.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.