new release 2.1.4 for resolving copy paste problem from excel to tksheet hose and conductor that was not memorised

released on pip install qet_tb_generator_xd
pip install qet_tb_generator_xd
pip install --upgrade qet_tb_generator_xd pour mettre a jour

https://github.com/XavierDeven/qet_tb_g … /tag/2.1.4
standalone executable windoze

you can click on header type to set ground automatically if cable is names pe

and you can also click on color header  column to set blue red green if cable is contain 0V, 24V, 48V OR PE

updated on pip today, to replace object position problem with tkinter with long terminal list

now work with tksheet for best response and long terminal list
can be launch from qet or as standalone executable downloadable in release

https://github.com/XavierDeven/qet_tb_g … /tree/main


https://qelectrotech.org/forum/misc.php?action=pun_attachment&item=3696&preview&secure_str=3104t3115

https://drive.google.com/drive/folders/ … 5E2zsUl-1L

num wire.py

5

(3 replies, posted in Scripts)

https://drive.google.com/drive/folders/ … 5E2zsUl-1L

qet element.py

6

(10 replies, posted in Scripts)

https://drive.google.com/drive/folders/ … 5E2zsUl-1L

Ni

plc-user wrote:

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

scorpio810 wrote:

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.

javdenech wrote:

je me suis gourer sur le nom dans pyproject.toml

il y avait des - a la place des underscore le relou

j'ai creer un compte pip pour le publier

pip install qet-tb-generator-xd

j'ai remis a jour le fichier dans le google drive

notice that on my pip account it's version 1.3.3
pip install qet-tb-generator-xd

on pip official release it's 2.0.1 but i leave the wrong name on toml file so there's a bug to launch it from qelectrotech if installed from pip official release.
I don't know if raulroda do the modification yet, i need to connect on the github but i 'am to busy for the moment.
it works on windows but i don't test it yet on linux and mac.

Kellermorph wrote:

Are the Terminals, the bridge, the cable etc created automatic or did u write it yourself for each terminal?

It's automatic

je me suis gourer sur le nom dans pyproject.toml

il y avait des - a la place des underscore le relou

j'ai creer un compte pip pour le publier

pip install qet-tb-generator-xd

j'ai remis a jour le fichier dans le google drive

Bonjour laurent,

je pense que oui car j'ai integrer une fonction sort by id sur le bouton a gauche
et j'ai fait plusieurs test les fils sont bien raccorder avec les bonnes bornes

les hoses et les conductor sont bien enregistrer dans la partie fonction ainsi que les couleur

les fonction sur les borne sont cleannable avec l'outil qet nomenclature.

Bonjour laurent,
I think so, because I integrated a sort by ID function on the button to the left.

And I've done several tests; the wires are correctly connected to the right terminals.

The hoses and conductors are correctly registered in the function section, as are their colors.

The functions on the terminals can be cleaned up with the QET Nomenclature tool.

unalcalde wrote:

Hi, I deploy version 2.0.0 to pypi.

To install the last version: pip install qet-tb-generator==2.0.0

To install previous version: pip install qet-tb-generator==1.3.1

ok cool did you take my last one from my google drive ?
because you deploy the wrong one from grosfichier.com
because cannot launch 2.0 from qelectrotech on windows....

https://drive.google.com/drive/folders/ … bNicnXMdAo

QET_TB_GENERATOR_PIP.ZIP

normally this last one can be launch from qelectrotech

unalcalde wrote:

Hi family. I'll try to deploy it on the weekend.

Nowadays I'm using Windows at work and I don't have the development tools installed.

I'll try to install it and create the pip version.

Thanks @javdenech for your excellence version.

I make a clean package to deploy on pip at the begining of the discution i will try to deploy on pip with a new name to maintain for later update on the link
https://github.com/XavierDeven/qet_tb_g … /tree/main
Here the link of all my tool for qelectrotech including
>new qet generator raulroda updated xd (me)
>num wire for automatic numerotation
>qet element for automatic numerotation of element K KM YV B IS renamed KA1 KA2 KA3 etc except slave element
also include terminal with and without stage numbering in automatic serveral X1 to X1:1 X1:2 ETC
>qet nomenclature to copy paste from excel directly in your diagram for every propertys of element

it will be cool to have a configurable extension plugin list in qelectrotech to launch other program

unalcalde wrote:

Hi family. I'll try to deploy it on the weekend.

Nowadays I'm using Windows at work and I don't have the development tools installed.

I'll try to install it and create the pip version.

Thanks @javdenech for your excellence version.

De nada

There a setup file to install it on windows as a standalone exe program in the folder output for windows with no link launch it from qet generator from qelectrotech.
and also in the dist folder the exe if you want to test it directly with all the python extension in folder _extention to run without installing anything.
The setup was done with "inno setup 6" software and the script to create the setup for inno is QET_TB_Generator_Setup.iss.

Also, I modifing src script with antigravity and i don't know if setup.py and run.py is ok...

17

(7 replies, posted in Terminal block generator)

J ai fais une version qui gère ce cas

https://qelectrotech.org/forum/viewtopic.php?id=3115

raulroda contact me and asking me if I want him to preparing a version for pip.
will see...

code source dispo ici par contre j'ai fais ca sur windows pour compiler en exe je sais pas si tout est bon pour du deploiement pip

I sent to him all the source code,I hope he can test and deploy for other because this new plugin change life for every electrician in my compagny. Hope it will be useful for other user in the world ! nomicons/wink

If someone know where to change the link in qelectrorotech folder, to launch the plugin link in windows...

The bridge management work also for stage with O to start a bridge and F to stop à bridge connections. And there is also a automatic bridge analyser with stage by stage mode to connect bridge with cable with the same polarity O O O O F
to trace exception betweew stage.

I send the script to raulroda but i don't know if i can share his work ! Waiting a response from him, maybe he can take a look and update his package.it provide compatibility with previous version, because the name X3:1 can be used also and you can also manually configure the stage... else it take .1 .2 .3 automatically to défine the stage position from the id. The sort by id also take care of that and if you have three stage with the same id the sorting take care of cable name to sorting them.

I rewrite the software from raulroda with management of stage and other

pip install qet-tb-generator-xd

Here the link of all my tool for qelectrotech including
>new qet generator raulroda updated xd (me)
>num wire for automatic numerotation
>qet element for automatic numerotation of element K KM YV B IS renamed KA1 KA2 KA3 etc except slave element
also include terminal with and without stage numbering in automatic serveral X1 to X1:1 X1:2 ETC
>qet nomenclature to copy paste from excel directly in your diagram for every propertys of elements

https://github.com/XavierDeven/qet_tb_g … /tree/main

25

(10 replies, posted in Scripts)

compile.bat

@echo off
:: Se placer dans le dossier du script actuel
cd /d "%~dp0"

echo ========================================================
echo   COMPILATION DE QET_NOMENCLATURE EN EXECUTABLE (.EXE)
echo ========================================================
echo.

:: 1. Vérifier et installer les prérequis
echo [1/3] Verification et installation des librairies requises...
:: On s'assure que pyinstaller et tksheet sont bien installés
python -m pip install --upgrade pip
python -m pip install tksheet pyinstaller
if %errorlevel% neq 0 (
    echo.
    echo ERREUR: Impossible d'installer les librairies. Verifiez votre installation Python.
    pause
    exit /b
)

:: 2. Nettoyer les anciennes compilations pour éviter les conflits
echo.
echo [2/3] Nettoyage des anciens fichiers...
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
if exist *.spec del *.spec

:: 3. Lancer la compilation
echo.
echo [3/3] Creation de l'executable (cela peut prendre 1 ou 2 minutes)...
:: --noconsole : Masque la fenêtre noire (console) au lancement
:: --onefile : Crée un seul fichier .exe autonome (au lieu d'un dossier)
:: --hidden-import : Force l'inclusion de tksheet pour être sûr
pyinstaller --noconsole --onefile --hidden-import=tksheet --name "QET_Nomenclature" "QET_NOMENCLATURE.PY"

echo.
echo ========================================================
if exist "dist\QET_Nomenclature.exe" (
    echo   SUCCES !
    echo   Votre executable est pret dans le dossier : dist\QET_Nomenclature.exe
    echo.
    echo   Vous pouvez copier ce fichier "QET_Nomenclature.exe" n'importe ou.
    echo   Il contient deja tksheet et Python.
) else (
    echo   ECHEC DE LA COMPILATION.
    echo   Veuillez verifier les messages d'erreur ci-dessus.
)
echo ========================================================
pause