"""
PyPalette — Color palette package for WOLF.
Provides:
- :class:`wolfpaletteModel` — Data model (no wxPython dependency).
Suitable for headless/batch use, testing, and server-side processing.
- :class:`wolfpalette` — Full GUI palette (inherits wolfpaletteModel + wx.Frame).
When wxPython is not available, ``wolfpalette`` is aliased to ``wolfpaletteModel``
so that existing code like ``wolfpalette(None, '')`` continues to work.
"""
from ._model import wolfpaletteModel
# Re-export color helpers (canonical home is now color_constants)
from ..color_constants import getRGBfromI, getIfromRGB, Color, RGB, Colors
try:
from ._gui import wolfpalette
except ImportError:
# wxPython is not installed — fall back to model-only palette
[docs]
wolfpalette = wolfpaletteModel
__all__ = ['wolfpaletteModel', 'wolfpalette',
'getRGBfromI', 'getIfromRGB',
'Color', 'RGB', 'Colors']