Skip to main content

Une librairie de widgets pour customtkinter.

Project description

Arrera TK

French version

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)
  • blanc
  • blanc-gris
  • bleu
  • bleu-blanc
  • bleu-violet
  • gris
  • jaune
  • orange
  • rose
  • rouge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arrera_tk-3.0.2.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

arrera_tk-3.0.2-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file arrera_tk-3.0.2.tar.gz.

File metadata

  • Download URL: arrera_tk-3.0.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for arrera_tk-3.0.2.tar.gz
Algorithm Hash digest
SHA256 d06775be6544bded26c58a242da9dbdc031c3616052722774ab1e00e5ac28e54
MD5 0411b0169319508747aae5cc301dcb98
BLAKE2b-256 eddd889c72ea38f230b870f1b1481f5c0579831429158b61699c69e67b9a7b18

See more details on using hashes here.

File details

Details for the file arrera_tk-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: arrera_tk-3.0.2-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

Hashes for arrera_tk-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57238a2847d883a444a6843952a73dbd3fbdf5c300c91a4cd356ee8b6963238a
MD5 b09e6be0614a82e9f4ee30a0eebb7c8d
BLAKE2b-256 35bf4a84f69ff2ef1f1b023fb638d2b67e02c4374d31fe8cf8565265a0b299fc

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