Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import name 'RightContent' from 'kivymd.uix.menu' #5

Open
kissste opened this issue Apr 21, 2022 · 1 comment
Open

Cannot import name 'RightContent' from 'kivymd.uix.menu' #5

kissste opened this issue Apr 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@kissste
Copy link

kissste commented Apr 21, 2022

Description of the Bug

Getting the following error:

Cannot import name 'RightContent' from 'kivymd.uix.menu'

Code and Logs

from kivymd.app import MDApp

from kivymd_extensions.filemanager import FileManager


class Example(MDApp):
    def on_context_menu(self, instance_file_manager, name_context_plugin):
        print(
            "Event 'on_context_menu'",
            instance_file_manager,
            name_context_plugin,
        )

    def on_tap_file(self, instance_file_manager, path):
        print("Event 'on_tap_file'", instance_file_manager, path)

    def on_tap_dir(self, instance_file_manager, path):
        print("Event 'on_tap_dir'", instance_file_manager, path)

    def on_tab_switch(
        self,
        instance_file_manager,
        instance_tabs,
        instance_tab,
        instance_tab_label,
        tab_text,
    ):
        print(
            "Event 'on_tab_switch'",
            instance_file_manager,
            instance_tabs,
            instance_tab,
            instance_tab_label,
            tab_text,
        )

    def on_start(self):
        manager = FileManager()
        manager.bind(
            on_tap_file=self.on_tap_file,
            on_tap_dir=self.on_tap_dir,
            on_tab_switch=self.on_tab_switch,
            on_context_menu=self.on_context_menu,
        )
        manager.open()


Example().run()

Screenshots

Add images to explain us this bug. Paste urls here.

Remove this section if no images here

Versions

  • OS: WIndows 10
  • Python: 3.10.4
  • Kivy: 2.1.0
  • KivyMD: 0.104.2
  • KivyMD-extensions: 1.0.0
  • KivyMD-extensions.filemanager: 0.1.5
@HeaTTheatR
Copy link
Contributor

@kissste We need to make changes to this package in accordance with the new API version 1.0.0 of the KivyMD library.

@HeaTTheatR HeaTTheatR added the bug Something isn't working label Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants