KivyMD Tutorial - Using a Navigation Drawer to Change Screens

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024
  • НаукаНаука

Комментарии • 74

  • @KapilKumar-og4hz
    @KapilKumar-og4hz 3 года назад

    Bro you solve my problem because I was confused in kivy or kivymd app system finally I got it. Thanks a lot🙏🙏

  • @erik-sandberg
    @erik-sandberg  5 лет назад +2

    EDIT: Newer versions of KivyMD made some breaking changes to the ScreenManager class. This video is likely outdated now I'll plan to make a new video for this topic.
    Code is on Github here: github.com/Dirk-Sandberg/KivyMDNavDrawerAndScreenManager
    Make sure to follow me on Github and subscribe to my channel if you haven't yet! It helps a lot :)

    • @sabisror833
      @sabisror833 3 года назад

      did you ever post a new video on the suject?

    • @rahulshan156
      @rahulshan156 3 года назад

      this pkg is not working well in my system I am using python 3.9 will you please help me

  • @abdoulramanekouma2779
    @abdoulramanekouma2779 4 года назад +7

    Hey Erik i'm using the latest version of kivymd copied to the folder where i'm trying to run main.py and main.kv files but i'm getting blank screen. I just tried the MDRoundFlatButton but nothing.

  • @Александр-р3э3м
    @Александр-р3э3м 4 года назад +3

    Thank you so much for such great videos, i like them a lot!

  • @alexd7466
    @alexd7466 3 года назад +5

    This does not work for recent versions of Kivy. It would be nice to see a update for this tutorial.

    • @frozen2ice609
      @frozen2ice609 2 года назад

      hello, if there are such videos here, can you throw it off

  • @MrJoJI
    @MrJoJI 4 года назад +2

    Please do more tutorial on kivyMD

  • @Drawland2012
    @Drawland2012 4 года назад

    Sick Man!! Thanks a lot

  • @reginaldoaquino1629
    @reginaldoaquino1629 3 года назад

    Good job!

  • @mustaqmohammad1168
    @mustaqmohammad1168 4 года назад +1

    hello Erik... while I'm following your video, .I'm getting an error " kivy.factory.FactoryException: Unknown class " what is the issue here can you or any one tell me how to solve this issue

  • @pranshuranjan2004
    @pranshuranjan2004 5 лет назад +2

    How can I connect firebase to my kivy app?

  • @ianrobertson4666
    @ianrobertson4666 5 лет назад +1

    These tutorials are great. I do have a question though. I have used the example you have provided, but on screen 1 i have added a carousel. The carousel is built from a custom class to populate the images as async image buttons, which is another custom class in itself. The problem is i cannot get the async image buttons to switch to another screen. Any suggestions would be appreciated.

    • @sweeterdeeker9436
      @sweeterdeeker9436 2 года назад

      Hey Ian. I am having trouble referencing the nav_drawer when I create a .kv file which contains my "homescreen" definition, as per the layout, the screen is under screen_manager which is under navigationlayout. Do you know how, in homescreen file I can reference the screen_manager in my main.py file?
      i have tried
      on_press:
      left_action_items: [['menu', lambda x: app.nav_drawer.set_state('open')]]
      right_action_items: [['face-profile', lambda x: root.nav_drawer2.set_state('open')]]

  • @awadhimassomo1145
    @awadhimassomo1145 4 года назад +1

    Hi Erik .I get error on the navigationdrawediconbutton

  • @xcli8381
    @xcli8381 4 года назад

    Thank you so much!

  • @richierahmathidayat
    @richierahmathidayat 4 года назад

    I can't use the on_touch_move() . touch event . the errors said " TypeError: on_touch_move() missing 1 required positional argument: 'touch'"... What does 'touch' means?how to implement the method. Thanks

  • @corollagl82
    @corollagl82 2 года назад

    I am having error with missing uix_path Please help : ImportError: cannot import name 'uix_path' from 'kivymd' (D:\ProgramData\Anaconda3\envs\inventory\lib\site-packages\kivymd\__init__.py)

  • @heddaolsen4097
    @heddaolsen4097 2 года назад

    when i added the NavigationDrawerIconButton I got an error.
    It says:
    raise FactoryException('Unknown class ' % name)
    kivy.factory.FactoryException: Unknown class
    Can you help me solve this error?

  • @joshuabloom560
    @joshuabloom560 4 года назад

    Cool thank you!

  • @HelloWorld-fh2ge
    @HelloWorld-fh2ge 4 года назад

    Great!

  • @efeakaroz4761
    @efeakaroz4761 4 года назад +1

    MDNavigationDrawer should be under of the Screen Manager for who using MDApp

    • @troybent1549
      @troybent1549 4 года назад

      Thanks for this! I couldn't figure out why the color schemes were dark when using the MDNavigationDrawer

  • @lwa.dev74
    @lwa.dev74 4 года назад

    Hey Eric! just a quick one.... what code editor are you using? I like the split screen code window + console view.. . just found you on RUclips had no idea this python resource was available and with material design... thanks for the amazing tutorials Awesome!! Subs!!! b.t.w :-)

    • @erik-sandberg
      @erik-sandberg  4 года назад +1

      The IDE is PyCharm. Thanks for watchin!

    • @lwa.dev74
      @lwa.dev74 4 года назад

      @@erik-sandberg Hi Eric, just watching you tutorial series... great stuff their pal...can't wait to get stuck inn... thanks for the recommendation so will install PyCharm alongside Sublime Text and see how I get along with KivyMD :-)

  • @jchangesqlawcenter
    @jchangesqlawcenter 4 года назад

    Great video! What IDE do you recommend? I'm following your tutorials on installing Kivy.

  • @pravinjyoti5020
    @pravinjyoti5020 4 года назад +1

    Help :
    Getting error like this, even after installing kivyMD.
    Traceback (most recent call last):
    File "example.py", line 2, in
    from kivymd.app import MDApp
    ModuleNotFoundError: No module named 'kivymd.app'

    • @neilfernando1384
      @neilfernando1384 4 года назад

      Are you using Pycharm, IDE?
      Have you installed the package inside the project you are working on?
      if you are using Pycharm, check out these links to help you install the KivyMD package into your project, thus allowing you to use kivymd.app module
      www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html
      ruclips.net/video/4fRhNd22io0/видео.html

  • @aavalos163
    @aavalos163 2 года назад

    I have been following your tutorial and it is not working for me. I am using Linux Mint Cinnamon. I have Python3.9 and kivy install. Anyone could help. I get an error saying "kivy.factory.FactoryException: Unknown class "

  • @prateekrajgautam
    @prateekrajgautam 3 года назад

    Can we do it in pure python way no kv design code.

  • @Jason-de3oo
    @Jason-de3oo 4 года назад +1

    What you are doing isn't working on my macbook.

  • @ashwiniuppaladinni8764
    @ashwiniuppaladinni8764 3 года назад

    Sir How can we add image to navigation drawer

  • @anmolnair4786
    @anmolnair4786 4 года назад

    can u tell me what idle are u using?

  • @darksidegames3136
    @darksidegames3136 4 года назад

    how do you switch screens without the toolbar

  • @janajanarthanan4606
    @janajanarthanan4606 3 года назад

    Bro kindly upload the video that contain:To access the navigation drawer contents (like change profile button in navigation drawer)after clicking the button the next screen will open and in that screen I click another button the screen will move to next screen.kindly upload the video bro.

  • @michaellarsonlee
    @michaellarsonlee 3 года назад

    How did you copy the kivyMD folder into your project? Can you do a video about setting up your environment in pycharm? IGranted this video is two years old this comment will propbably be lost to time

    • @erik-sandberg
      @erik-sandberg  3 года назад +1

      You can now just do `pip install kivymd` and you'll have access to everything. Your comment wasn't lost in time! If you need help check out the Kivy Discord chat.kivy.org

    • @michaellarsonlee
      @michaellarsonlee 3 года назад

      @@erik-sandberg oh great! I will thanks erik!!! You the man

  • @何子斌
    @何子斌 4 года назад

    excuse me, how can I make a floating drawer, instead a static one you just showed

  • @sksahil4374
    @sksahil4374 4 года назад

    in the list ["menu",lambda x:callback()]
    how that function taking value of x ?

    • @HelloWorld-fh2ge
      @HelloWorld-fh2ge 4 года назад

      I think for event!

    • @sksahil4374
      @sksahil4374 4 года назад

      @@HelloWorld-fh2ge how that function taking value of x ?
      give me a python simple example ..

  • @d.bk-201
    @d.bk-201 5 лет назад +1

    What version of kivymd do you use?

  • @sarveshkesharwani7434
    @sarveshkesharwani7434 4 года назад

    Hi, how do I call a function defined in .py file on clicking of a button defined in .kv file ?

    • @mustaqmohammad1168
      @mustaqmohammad1168 4 года назад

      use on_release method in kv file to call the function defined in .py

  • @marcelopilone6639
    @marcelopilone6639 5 лет назад +2

    hello, exist the code in github?, thanks

    • @erik-sandberg
      @erik-sandberg  5 лет назад

      Just put it up for you!

    • @marcelopilone6639
      @marcelopilone6639 5 лет назад

      @@erik-sandberg I have a doubt github.com/Dirk-Sandberg/KivyMDNavDrawerAndScreenManager/issues/1 thanks

  • @ayaan5852
    @ayaan5852 3 года назад +1

    paste the code someone pls !

  • @pigostudios
    @pigostudios 5 лет назад +1

    Hello sorry for my question, would you recommend using kivy instead of flutter? Or do you think that making applications in kivy is optimal or favorable compared to flutter?
    I would greatly appreciate your comment, I don't need a great explanation.
    Thank you

    • @erik-sandberg
      @erik-sandberg  5 лет назад +1

      If you know Python and don't want to learn a new language, go for Kivy. Otherwise, you might look into Flutter instead - Flutter has a larger development team (it's part of Google after all) and a higher user base.

    • @pigostudios
      @pigostudios 5 лет назад

      @@erik-sandberg Thanks. Regards

  • @darksidegames3136
    @darksidegames3136 4 года назад +2

    There's a new a version of kivy so pls update this

  • @codecare7878
    @codecare7878 2 года назад

    Would you please provide your source code

  • @leon3516
    @leon3516 4 года назад

    Did this change again?
    As for me, calling NavigationDrawerIconButton in the kv file gives an error "Class not found"..
    Looking at this:
    github.com/HeaTTheatR/KivyMD/wiki/Components-Navigation-Drawer#using-mdnavigationdrawer-has-changed
    I still do not fully understand how to approach the creation of navigation drawers now. The example seems rather bloated/difficult.

    • @erik-sandberg
      @erik-sandberg  4 года назад +1

      Hmm, looks like it has changed. That's the tough part about using a framework in beta, especially watching tutorial videos. They'll work one day, then be rendered out of date the next.

    • @BesideTheVoid
      @BesideTheVoid 4 года назад

      I posted a fix here: github.com/Dirk-Sandberg/KivyMDNavDrawerAndScreenManager/issues/2

  • @rahulshan156
    @rahulshan156 3 года назад

    is there any one how can help me out about this video pls

  • @ShashankShuklaBIS
    @ShashankShuklaBIS 4 года назад

    Hello Erik, I'm getting this error: ValueError: KivyMD: App object must be inherited from `kivymd.app.MDApp`. See github.com/HeaTTheatR/KivyMD/blob/master/README.md#api-breaking-changes, and I couldn't find a proper solution to that on google. Plz help. T.I.A.

    • @neilfernando1384
      @neilfernando1384 4 года назад

      Check the syntax of your code. I had that error before. It came out because the app object was inherited from kivy and not kivyMD.

    • @ShashankShuklaBIS
      @ShashankShuklaBIS 4 года назад +1

      @@neilfernando1384 Thanks Neil, I checked the kivy documentation and changes, in that they've changed the directory for MDNavigationDrawer as well as for the Theming library. Everything is moved to kivymd.uix.....

    • @divyasharma4513
      @divyasharma4513 4 года назад

      I'm getting the same error, but can't figure out the solution. ValueError: KivyMD: App object must be inherited from `kivymd.app.MDApp`. See github.com/HeaTTheatR/KivyMD/blob/master/README.md#api-breaking-changes. Nothings seems to work. Can you elaborate on your solution?

    • @ShashankShuklaBIS
      @ShashankShuklaBIS 4 года назад

      @@divyasharma4513 , yeah, this guy has explained it better: ruclips.net/video/tcnKm1kcep8/видео.html
      Although to change the screens you need to tweak the code a little bit. Join the Discord channel, I got a lot of help from there.