globalforest/kivymd/uix/screen.py

39 lines
691 B
Python
Raw Normal View History

2020-10-14 00:19:43 -04:00
"""
Components/Screen
=================
:class:`~kivy.uix.screenmanager.Screen` class equivalent. Simplifies working
with some widget properties. For example:
Screen
------
.. code-block::
Screen:
canvas:
Color:
rgba: app.theme_cls.primary_color
RoundedRectangle:
pos: self.pos
size: self.size
radius: [25, 0, 0, 0]
MDScreen
--------
.. code-block::
MDScreen:
radius: [25, 0, 0, 0]
md_bg_color: app.theme_cls.primary_color
"""
from kivy.uix.screenmanager import Screen
from kivymd.uix import MDAdaptiveWidget
class MDScreen(Screen, MDAdaptiveWidget):
pass