Skip to content

Commit

Permalink
2.0.0 - Material Design 3
Browse files Browse the repository at this point in the history
Edit with `black` utility.
  • Loading branch information
HeaTTheatR committed Nov 26, 2023
1 parent b882506 commit 828689b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/dropdownitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from examples.common_app import CommonApp

KV = '''
KV = """
MDScreen
md_bg_color: self.theme_cls.backgroundColor
Expand All @@ -23,7 +23,7 @@
MDDropDownItemText:
id: drop_text
text: "Item"
'''
"""


class Example(MDApp, CommonApp):
Expand All @@ -34,7 +34,8 @@ def open_drop_item_menu(self, item):
{
"text": f"{i}",
"on_release": lambda x=f"Item {i}": self.menu_callback(x),
} for i in range(5)
}
for i in range(5)
]
if not self.drop_item_menu:
self.drop_item_menu = MDDropdownMenu(
Expand Down

0 comments on commit 828689b

Please sign in to comment.