Sideband/sbapp/kivymd/uix/templates/stencilwidget/stencilwidget.py

35 lines
843 B
Python
Raw Normal View History

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