mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-08 22:42:20 -04:00
Updated build system for Kivy 2.2.1
This commit is contained in:
parent
23e6b6e0c6
commit
67a8f61af8
126 changed files with 9967 additions and 4279 deletions
|
@ -11,13 +11,13 @@ In `KV file`:
|
|||
|
||||
.. code-block:: kv
|
||||
|
||||
<HoverItem@MDBoxLayout+ThemableBehavior+HoverBehavior>
|
||||
<HoverItem@MDBoxLayout+HoverBehavior>
|
||||
|
||||
In `python file`:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class HoverItem(MDBoxLayout, ThemableBehavior, HoverBehavior):
|
||||
class HoverItem(MDBoxLayout, HoverBehavior):
|
||||
'''Custom item implementing hover behavior.'''
|
||||
|
||||
After creating a class, you must define two methods for it:
|
||||
|
@ -38,7 +38,6 @@ the widget.
|
|||
from kivymd.app import MDApp
|
||||
from kivymd.uix.behaviors import HoverBehavior
|
||||
from kivymd.uix.boxlayout import MDBoxLayout
|
||||
from kivymd.theming import ThemableBehavior
|
||||
|
||||
KV = '''
|
||||
Screen
|
||||
|
@ -51,7 +50,7 @@ the widget.
|
|||
'''
|
||||
|
||||
|
||||
class HoverItem(MDBoxLayout, ThemableBehavior, HoverBehavior):
|
||||
class HoverItem(MDBoxLayout, HoverBehavior):
|
||||
'''Custom item implementing hover behavior.'''
|
||||
|
||||
def on_enter(self, *args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue