#!/usr/bin/env python
"""
GUI-SHOW-TOOLKITS script for Package PLIB.GUI
Copyright (C) 2019 by Peter A. Donis

Released under the GNU General Public License, Version 2
See the LICENSE and README files for more information

This script shows which GUI toolkits are present on the system.
"""

import sys

from plib.gui._setup import *


module_vars = [
    'WX_PRESENT', 'KDE4_PRESENT', 'QT4_PRESENT', 'PYSIDE_PRESENT', 'QT5_PRESENT', 'PYSIDE2_PRESENT'
]

mod = sys.modules[__name__]

toolkits_present = [
    varname[:-len("_PRESENT")]
    for varname in module_vars if getattr(mod, varname)
]

print( "GUI toolkits present:", ", ".join(toolkits_present))
