KivyMD Tutorial - Using a Navigation Drawer to Change Screens

แชร์
ฝัง

ความคิดเห็น • 74

  • @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.

  • @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🙏🙏

  • @alexd7466
    @alexd7466 4 ปีที่แล้ว +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

  • @Александр-р3э3м
    @Александр-р3э3м 4 ปีที่แล้ว +3

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

  • @MrJoJI
    @MrJoJI 4 ปีที่แล้ว +2

    Please do more tutorial on kivyMD

  • @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

  • @awadhimassomo1145
    @awadhimassomo1145 4 ปีที่แล้ว +1

    Hi Erik .I get error on the navigationdrawediconbutton

  • @pranshuranjan2004
    @pranshuranjan2004 5 ปีที่แล้ว +2

    How can I connect firebase to my kivy app?

  • @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

  • @prateekrajgautam
    @prateekrajgautam 3 ปีที่แล้ว

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

  • @reginaldoaquino1629
    @reginaldoaquino1629 4 ปีที่แล้ว

    Good job!

  • @Drawland2012
    @Drawland2012 4 ปีที่แล้ว

    Sick Man!! Thanks a lot

  • @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?

  • @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)

  • @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
      th-cam.com/video/4fRhNd22io0/w-d-xo.html

  • @anmolnair4786
    @anmolnair4786 4 ปีที่แล้ว

    can u tell me what idle are u using?

  • @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')]]

  • @xcli8381
    @xcli8381 4 ปีที่แล้ว

    Thank you so much!

  • @ashwiniuppaladinni8764
    @ashwiniuppaladinni8764 4 ปีที่แล้ว

    Sir How can we add image to navigation drawer

  • @darksidegames3136
    @darksidegames3136 4 ปีที่แล้ว

    how do you switch screens without the toolbar

  • @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

  • @joshuabloom560
    @joshuabloom560 4 ปีที่แล้ว

    Cool thank you!

  • @Jason-de3oo
    @Jason-de3oo 4 ปีที่แล้ว +1

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

  • @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 TH-cam 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 :-)

  • @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

  • @jchangesqlawcenter
    @jchangesqlawcenter 5 ปีที่แล้ว

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

  • @d.bk-201
    @d.bk-201 5 ปีที่แล้ว +1

    What version of kivymd do you use?

    • @erik-sandberg
      @erik-sandberg  5 ปีที่แล้ว +2

      This was made with version 0.100.2

  • @何子斌
    @何子斌 4 ปีที่แล้ว

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

  • @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

  • @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 ..

  • @aavalos163
    @aavalos163 3 ปีที่แล้ว

    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 "

  • @codecare7878
    @codecare7878 2 ปีที่แล้ว

    Would you please provide your source code

  • @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

  • @ayaan5852
    @ayaan5852 3 ปีที่แล้ว +1

    paste the code someone pls !

  • @HelloWorld-fh2ge
    @HelloWorld-fh2ge 4 ปีที่แล้ว

    Great!

  • @leon3516
    @leon3516 5 ปีที่แล้ว

    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  5 ปีที่แล้ว +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

  • @darksidegames3136
    @darksidegames3136 4 ปีที่แล้ว +2

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

  • @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 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +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 4 ปีที่แล้ว

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

  • @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: th-cam.com/video/tcnKm1kcep8/w-d-xo.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.