https://doc.qt.io/qtforpython-6/considerations.html#the-new-python-enums
In PyQt5, it's possible to use members of enums in the same scope as
enums, e.g. Qt.red. This is not possible in PyQt6, but both PyQt5 and
PyQt6 support the new python enums - Qt.GlobalColor.red
This change prepares the code for the future transition to PyQt6.
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
The ChooseAnalysis dialog lists the analysis tabs so the user can select
them. Create a new metaclass so the listing of tabs, grouping in the menu,
and the invocation of the tab's class is automatic. This requires section,
tab_title, and mlsonly class attributes.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
Suppress errors like this:
Exception ignored in: <function DomainTransitionAnalysisTab.__del__ at 0x7fcb4e93c1f0>
Traceback (most recent call last):
File "/home/pebenito/projects/setools/setoolsgui/apol/dta.py", line 54, in __del__
self.thread.quit()
RuntimeError: wrapped C/C++ object of type ResultsUpdater has been deleted
Exception ignored in: <function ResultsUpdater.__del__ at 0x7fcb4e943550>
Traceback (most recent call last):
File "/home/pebenito/projects/setools/setoolsgui/apol/dta.py", line 449, in __del__
self.wait()
RuntimeError: wrapped C/C++ object of type ResultsUpdater has been deleted
Exception ignored in: <function BrowserUpdater.__del__ at 0x7fcb4e943820>
Traceback (most recent call last):
File "/home/pebenito/projects/setools/setoolsgui/apol/dta.py", line 538, in __del__
self.wait()
RuntimeError: wrapped C/C++ object of type BrowserUpdater has been deleted
Signed-off-by: Chris PeBenito <pebenito@ieee.org>