Une librairie de widgets pour customtkinter.
Project description
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.
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 Distributions
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 arrera_tk-3.0.1-py3-none-any.whl.
File metadata
- Download URL: arrera_tk-3.0.1-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9b4a8140f309bce52c7ff100b36d4051137c96aa089b6f4d967b1e3cedc2b4
|
|
| MD5 |
6d2c204c697268db906286a5b43a3426
|
|
| BLAKE2b-256 |
d4c5c8f4827feb70b3fa59c355c380903daa4ee592270393b7b396bf2925d592
|