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

33 lines
764 B
Python
Raw Normal View History

2022-07-07 16:16:10 -04:00
"""
Templates/RotateWidget
======================
2022-10-02 11:16:59 -04:00
.. deprecated:: 1.0.0
2022-07-07 16:16:10 -04:00
2022-10-02 11:16:59 -04:00
.. note:: `RotateWidget` class has been deprecated. Please use
`RotateBahavior <https://kivymd.readthedocs.io/en/latest/behaviors/rotate/>`_
class instead.
2022-07-07 16:16:10 -04:00
"""
__all__ = ("RotateWidget",)
2022-10-02 11:16:59 -04:00
from kivy import Logger
2022-07-07 16:16:10 -04:00
2022-10-02 11:16:59 -04:00
from kivymd.uix.behaviors import RotateBehavior
2022-07-07 16:16:10 -04:00
2022-10-02 11:16:59 -04:00
class RotateWidget(RotateBehavior):
2022-07-07 16:16:10 -04:00
"""
2022-10-02 11:16:59 -04:00
.. deprecated:: 1.1.0
Use :class:`~kivymd.uix.behaviors.rotate_behavior.RotateBehavior`
class instead.
2022-07-07 16:16:10 -04:00
"""
2022-10-02 11:16:59 -04:00
def __init__(self, **kwargs):
super().__init__(**kwargs)
Logger.warning(
"KivyMD: "
"The `RotateWidget` class has been deprecated. "
"Use the `RotateBehavior` class instead."
)