Re: Ideas to solve Terminal Blocks creation

I try to change PATH in program, users can add binary python portable in QET home directory like DXFtoelmt plugin...
https://git.tuxfamily.org/qet/qet.git/c … 5e30ae57cf

Re: Ideas to solve Terminal Blocks creation

On my old  VM Debian 9 AppImage station :

./qet_tb_generator 
[33786] Error loading Python lib '/tmp/_MEITlQZO2/libpython3.8.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/_MEITlQZO2/libpython3.8.so.1.0)

But work in my Debian Sid, also Plugin work and launch in Flatpak, great. ;-)

Re: Ideas to solve Terminal Blocks creation

If someone decides to create a qet_tb_generator portable bundle on macOS?
https://py2app.readthedocs.io/en/latest/py2applet.html

Re: Ideas to solve Terminal Blocks creation

I used http://www.pyinstaller.org/ to generate the portable versions for Linux & Windows. It would work in macOS also.

Re: Ideas to solve Terminal Blocks creation

Hi. A new version is launched: 1.1.6

This version solves:
- the problem if the 'folioSheetQuantity' attribute doesn't exist (last dev versions of QET don't use it).
- mouse right click did not work in MacOS.


There are 2 options to install the plugin:

A. Using python pip

Requires python 3.5 or above.

>> First install on Linux (Debian based distros)
1. In a terminalm install python3 and GUI library:
    sudo apt-get install python3 python3-tk python3-pip
2. Install the program: 
    sudo pip3 install qet_tb_generator
3. Launch the plugin from the 'Project' menu of QElectrotech.

>> Update on Linux
sudo python3 -m pip install --upgrade qet_tb_generator

>> First install on Windows
1. Install, if required, python 3.5 or above
2. pip3 install qet_tb_generator

>> Update on Windows
python -m pip install --upgrade qet_tb_generator


B. Using the portable versions. Available at:

Windows: https://download.tuxfamily.org/qet/builds/nightly/
Rename to qet_tb_generator.exe and put it on your C:\Users\[username]\AppData\qet\

Linux: https://download.tuxfamily.org/qet/builds/AppImage/
Rename to qet_tb_generator, mark "qet_tb_generator" as executable and put it Put it  to ~/.qet/

281 (edited by unalcalde 2020-10-04 08:32:58)

Re: Ideas to solve Terminal Blocks creation

Hi. A new version is launched: 1.1.7


This version solves:
- Has changed the packaging method to allow more checkboxes to mark whats terminals to generate.


Installation methods:


A. Using python pip

Requires python 3.5 or above.

>> First install on Linux (Debian based distros)
1. In a terminalm install python3 and GUI library:
    sudo apt-get install python3 python3-tk python3-pip
2. Install the program:
    sudo pip3 install qet_tb_generator
3. Launch the plugin from the 'Project' menu of QElectrotech.

>> Update on Linux
sudo python3 -m pip install --upgrade qet_tb_generator

>> First install on Windows
1. Install, if required, python 3.5 or above
2. pip3 install qet_tb_generator

>> Update on Windows
python -m pip install --upgrade qet_tb_generator



B. Using the portable versions. Available at:

Windows: https://download.tuxfamily.org/qet/builds/nightly/
Rename to qet_tb_generator.exe and put it on your C:\Users\[username]\AppData\qet\

Linux: https://download.tuxfamily.org/qet/builds/AppImage/
Rename to qet_tb_generator, mark "qet_tb_generator" as executable and put it Put it  to ~/.qet/

Post's attachments

Attachment icon version_1.7.png 111.41 kb, file has never been downloaded. 

Re: Ideas to solve Terminal Blocks creation

Great Unalcade.
https://github.com/qelectrotech/qet_tb_ … 782aa70eb6
.
Debian packages and Ubuntu PPA is availables.

Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu2) focal; urgency=medium

  * Focal Upload to ppa


Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu1) bionic; urgency=medium

  * Bionic Upload to ppa

283

Re: Ideas to solve Terminal Blocks creation

I changed the default terminal block element in the element editor. When generating a terminal block, the names of the cables are not displayed for me.

Experimentally discovered that the element editor sticks a unique uuid to terminal elements. If you delete it in any text editor, then Terminal block generator correctly displays the cable name.

However, if I change the font for example in the element editor and re-save the file, it will add uuid again and it is necessary to manually edit the project or element.
How can I fix this or am I doing something wrong?

I am using QElectroTech V 0.8-dev-831-g9193e1c39.snap and Terminal block generator v1.1.7
I am attaching a test project with two terminals and a terminal block

Post's attachments

Attachment icon proj.qet 67.83 kb, 9 downloads since 2020-10-05 

Re: Ideas to solve Terminal Blocks creation

scorpio810 wrote:

Great Unalcade.
https://github.com/qelectrotech/qet_tb_ … 782aa70eb6
.
Debian packages and Ubuntu PPA is availables.

Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu2.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu2) focal; urgency=medium

  * Focal Upload to ppa


Accepted:
OK: qet-tb-generator_1.1.7.orig.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.debian.tar.xz
OK: qet-tb-generator_1.1.7-3ubuntu1.dsc
     -> Component: main Section: python

qet-tb-generator (1.1.7-3ubuntu1) bionic; urgency=medium

  * Bionic Upload to ppa

Il y a-t-il un exécutable (sans installation) windows 32bits ?
Merci.

Re: Ideas to solve Terminal Blocks creation

https://download.tuxfamily.org/qet/buil … -1.1.7.exe

scorpio810 wrote:

Sinon tu peut le créer toi même ce .exe
https://datatofish.com/executable-pyinstaller/


Win64
cd C:\Users\laurent\AppData\Roaming\Python\Python36\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

Win32
cd C:\Users\laurent\AppData\Local\Programs\Python\Python37-32\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

Re: Ideas to solve Terminal Blocks creation

scorpio810 wrote:

https://download.tuxfamily.org/qet/buil … -1.1.7.exe

scorpio810 wrote:

Sinon tu peut le créer toi même ce .exe
https://datatofish.com/executable-pyinstaller/


Win64
cd C:\Users\laurent\AppData\Roaming\Python\Python36\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

Win32
cd C:\Users\laurent\AppData\Local\Programs\Python\Python37-32\Scripts\
pyinstaller.exe \Users\laurent\Downloads\qet_tb_generator-1.0.16\src\main.py -F

C'est une version 64bits...

Re: Ideas to solve Terminal Blocks creation

è possibile pensare ad un metodo più semplice o veloce di modificare le posizioni dei morsetti?magari un campo compilabile dove si inserisce direttamente la posizione ed automaticamente si scambia con quella già presente, oppure spostarlo con le frecce dopo averlo selezionato, spostare 20-30 morsetti magari dalla fine all'inizio diventa molto laborioso,

grazie mille