2022-07-07 22:16:10 +02:00
|
|
|
"""
|
|
|
|
Templates/RotateWidget
|
|
|
|
======================
|
|
|
|
|
2022-10-08 17:17:59 +02:00
|
|
|
.. deprecated:: 1.0.0
|
2022-07-07 22:16:10 +02:00
|
|
|
|
2022-10-08 17:17:59 +02:00
|
|
|
.. note:: `RotateWidget` class has been deprecated. Please use
|
|
|
|
`RotateBahavior <https://kivymd.readthedocs.io/en/latest/behaviors/rotate/>`_
|
|
|
|
class instead.
|
2022-07-07 22:16:10 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
__all__ = ("RotateWidget",)
|
|
|
|
|
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 RotateBehavior
|
2022-07-07 22:16:10 +02:00
|
|
|
|
|
|
|
|
2022-10-08 17:17:59 +02:00
|
|
|
class RotateWidget(RotateBehavior):
|
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.rotate_behavior.RotateBehavior`
|
|
|
|
class instead.
|
2022-07-07 22:16:10 +02:00
|
|
|
"""
|
|
|
|
|
2022-10-08 17:17:59 +02:00
|
|
|
def __init__(self, **kwargs):
|
|
|
|
super().__init__(**kwargs)
|
|
|
|
Logger.warning(
|
|
|
|
"KivyMD: "
|
|
|
|
"The `RotateWidget` class has been deprecated. "
|
|
|
|
"Use the `RotateBehavior` class instead."
|
|
|
|
)
|