Re: QET TB GENERATOR stage update color and custom tkinter
Argh
pip install customtkinter Pillow
Hum no Debian packages for customtkinter....
https://packages.debian.org/fr/source/sid/pillow
You are not logged in. Please login or register.
QElectroTech → Terminal block generator → QET TB GENERATOR stage update color and custom tkinter
Argh
pip install customtkinter Pillow
Hum no Debian packages for customtkinter....
https://packages.debian.org/fr/source/sid/pillow
Argh
pip install customtkinter Pillow
Hum no Debian packages for customtkinter....
https://packages.debian.org/fr/source/sid/pillow
Curtom tkinter sous debian
Utiliser CustomTkinter sur Debian est une excellente idée si vous voulez donner un coup de jeune aux interfaces Python classiques (le look Windows 95, ça va un moment).
C'est assez simple, mais Debian étant ce qu'il est (très stable mais parfois strict sur les dépendances), il y a deux ou trois petites choses à savoir pour éviter les erreurs "ModuleNotFoundError" ou les problèmes d'affichage.
1. Prérequis Système
Avant d'installer la bibliothèque Python, assurez-vous que tkinter lui-même est présent sur votre système. Debian ne l'installe pas toujours par défaut avec Python.
Ouvrez un terminal et lancez :
Bash
sudo apt update
sudo apt install python3-tk
2. Installation de CustomTkinter
Il est fortement recommandé d'utiliser un environnement virtuel (venv) pour ne pas polluer votre installation système Debian.
Option A : Via un environnement virtuel (Recommandé)
Bash
# Créer l'environnement
python3 -m venv venv
# L'activer
source venv/bin/activate
# Installer la bibliothèque
pip install customtkinter
Option B : Installation globale (Si nécessaire)
Si vous ne voulez pas de venv, Debian 12+ vous empêchera probablement d'utiliser pip install directement. Utilisez alors :
Bash
pip install customtkinter --break-system-packages
3. Test de bon fonctionnement
Pour vérifier que tout est bien configuré, créez un fichier test_ctk.py :
Python
import customtkinter as ctk
# Configuration du thème
ctk.set_appearance_mode("dark") # Modes: "System", "Dark", "Light"
ctk.set_default_color_theme("blue") # Thèmes: "blue", "green", "dark-blue"
app = ctk.CTk()
app.geometry("400x240")
app.title("CustomTkinter sur Debian")
def button_callback():
print("Bouton cliqué !")
button = ctk.CTkButton(app, text="Cliquez-moi", command=button_callback)
button.pack(padx=20, pady=20)
app.mainloop()
4. Astuces spécifiques à Debian / Linux
Flou des polices : Si les polices paraissent floues sur un écran haute résolution, c'est souvent lié à la gestion du DPI par X11 ou Wayland. CustomTkinter gère généralement bien l'auto-scaling, mais vérifiez que votre environnement de bureau (GNOME, KDE) n'applique pas un facteur d'échelle forcé.
Thème du système : L'option ctk.set_appearance_mode("System") fonctionne bien sur GNOME pour détecter si vous êtes en mode sombre ou clair.
Performance : Si vous utilisez une vieille version de Debian avec une version de Python < 3.7, vous pourriez rencontrer des limitations. Assurez-vous d'être au moins sur Debian 11 ou 12.
Hello everyone!
What are we actually talking about here?
Does everyone who wants to use the plugin have to compile it themselves, or is it still possible, as before, to put a few binaries for Windows/Linux/Apple on GitHub, for example, that can be downloaded?
I don't want to go to the trouble of compiling it myself for my systems...!
Hallo plc-user,
see Xavier file, here:
https://drive.google.com/drive/folders/ … bNicnXMdAo
Or backup tarball, I attached here:
Ni
Hello everyone!
What are we actually talking about here?
Does everyone who wants to use the plugin have to compile it themselves, or is it still possible, as before, to put a few binaries for Windows/Linux/Apple on GitHub, for example, that can be downloaded?
I don't want to go to the trouble of compiling it myself for my systems...!
Hello plc-user
On windows you can use
pip install qet-tb-generator-xd
pip uninstall qet-tb-generator-xd
I don't try it on Linux but on windows it's ok
QElectroTech → Terminal block generator → QET TB GENERATOR stage update color and custom tkinter
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.033 seconds (13% PHP - 87% DB) with 11 queries