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

35 lines
804 B
Python
Raw Normal View History

2022-07-07 22:16:10 +02:00
"""
Templates/ScaleWidget
=====================
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 scale of the widget.
2022-10-08 17:17:59 +02:00
.. note:: `ScaleWidget` class has been deprecated. Please use
`ScaleBehavior <https://kivymd.readthedocs.io/en/latest/behaviors/scale/>`_
class instead.
2022-07-07 22:16:10 +02:00
"""
__all__ = ("ScaleWidget",)
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 ScaleBehavior
2022-07-07 22:16:10 +02:00
2022-10-08 17:17:59 +02:00
class ScaleWidget(ScaleBehavior):
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.ScaleBehavior`
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 `ScaleWidget` class has been deprecated. "
"Use the `ScaleBehavior` class instead."
)