55 lines
1.1 KiB
Python
55 lines
1.1 KiB
Python
import traceback
|
|
|
|
# this is separate to help out some linting since we are spamming imports here
|
|
|
|
def get_qt_library_str_status():
|
|
|
|
infos = []
|
|
|
|
try:
|
|
|
|
import PyQt5
|
|
|
|
infos.append( 'PyQt5 imported ok' )
|
|
|
|
except Exception as e:
|
|
|
|
infos.append( 'PyQt5 did not import ok:\n{}'.format( traceback.format_exc() ) )
|
|
|
|
|
|
try:
|
|
|
|
import PySide2
|
|
|
|
infos.append( 'PySide2 imported ok' )
|
|
|
|
except Exception as e:
|
|
|
|
infos.append( 'PySide2 did not import ok:\n{}'.format( traceback.format_exc() ) )
|
|
|
|
|
|
try:
|
|
|
|
import PyQt6
|
|
|
|
infos.append( 'PyQt6 imported ok' )
|
|
|
|
except Exception as e:
|
|
|
|
infos.append( 'PyQt6 did not import ok:\n{}'.format( traceback.format_exc() ) )
|
|
|
|
|
|
try:
|
|
|
|
import PySide6
|
|
|
|
infos.append( 'PySide6 imported ok' )
|
|
|
|
except Exception as e:
|
|
|
|
infos.append( 'PySide6 did not import ok:\n{}'.format( traceback.format_exc() ) )
|
|
|
|
|
|
return '\n'.join( infos )
|
|
|