Some background:
- Dialog is done "by hand"
- It uses a QtGui.QTabWidget containin some Tabs under GridLayouts
- Button are created in different Tabs using QPushButton
Two major problem:
- when the interface is created the command associated with the button using: .clicked.connect() is executed.
- some button was not working.
Solution found:
- using a "boolean flag" set to False and checked in the method invoked by .clicked.connect() wil prevent the trigger of the action during the Initialization of the interface, once init is finished, set it to True to make the execution happen.
- using a lamba: <method invocation> has solved the problem of not working buttons.
Some developers has noted these behaviour or I have something wrong, here some info about my FC version:
Code: Select all
OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.20.28765 (Git)
Build type: Release
Branch: (HEAD detached at 795f86c)
Hash: 795f86c18c22260cfc3627bdd5b71504b9dca4ef
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Italian/Italy (it_IT)
Installed mods:
* fcgear 1.0.0
* freecad-antenna
* Curves 0.4.1
Carlo D.