Event on tuching navigation Drawer

11 views
Skip to first unread message

Javier Uribe

unread,
May 15, 2018, 11:48:10 AM5/15/18
to Kivy users support
Hi,
I'm using kivyMD and I want to have a MDNavigationDrawer but I want an event when the nav is touched, meaning when it drops the submenus down I want an event method to do something.

Because, unlike on buttons that have on_press, MDNavigationDrawer does not have this method. Thanks

So the kv would be:
TrytonDynamicNavDrawer:
    on_press
: root.create_menus()

And the python like this:
class TrytonDynamicNavDrawer(MDNavigationDrawer):
     
def on_press(self):
           
# I need to populate after the navigation drawer is pressed

Thank you very much.

Javier Uribe

unread,
May 16, 2018, 3:10:19 AM5/16/18
to Kivy users support
I found out that on_touch_up can do the trick.
Reply all
Reply to author
Forward
0 new messages