2022-07-07 16:16:10 -04:00
|
|
|
"""
|
|
|
|
Templates/StencilWidget
|
|
|
|
=======================
|
|
|
|
|
2022-10-08 11:17:59 -04:00
|
|
|
.. deprecated:: 1.1.0
|
2022-07-07 16:16:10 -04:00
|
|
|
|
|
|
|
Base class for controlling the stencil instructions of the widget.
|
|
|
|
|
2022-10-08 11:17:59 -04:00
|
|
|
.. note:: `StencilWidget` class has been deprecated. Please use
|
|
|
|
`StencilBehavior <https://kivymd.readthedocs.io/en/latest/behaviors/stencil/>`_
|
|
|
|
class instead.
|
2022-07-07 16:16:10 -04:00
|
|
|
"""
|
|
|
|
|
|
|
|
__all__ = ("StencilWidget",)
|
|
|
|
|
2022-10-08 11:17:59 -04:00
|
|
|
from kivy import Logger
|
2022-07-07 16:16:10 -04:00
|
|
|
|
2022-10-08 11:17:59 -04:00
|
|
|
from kivymd.uix.behaviors import StencilBehavior
|
2022-07-07 16:16:10 -04:00
|
|
|
|
2022-10-02 18:46:03 -04:00
|
|
|
|
2022-10-08 11:17:59 -04:00
|
|
|
class StencilWidget(StencilBehavior):
|
2022-07-07 16:16:10 -04:00
|
|
|
"""
|
2022-10-08 11:17:59 -04:00
|
|
|
.. deprecated:: 1.1.0
|
|
|
|
Use :class:`~kivymd.uix.behaviors.scale_behavior.StencilBehavior`
|
|
|
|
class instead.
|
2022-10-02 18:46:03 -04:00
|
|
|
"""
|
2022-10-08 11:17:59 -04:00
|
|
|
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
super().__init__(**kwargs)
|
|
|
|
Logger.warning(
|
|
|
|
"KivyMD: "
|
|
|
|
"The `StencilWidget` class has been deprecated. "
|
|
|
|
"Use the `StencilBehavior` class instead."
|
|
|
|
)
|