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

33 lines
764 B
Python
Raw Normal View History

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."
)