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