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 :)
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.
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
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
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?
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)
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'
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
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.
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')]]
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 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 :-)
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 "
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
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.
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.
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.
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.
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
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
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 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.....
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?
@@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.
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 :)
did you ever post a new video on the suject?
this pkg is not working well in my system I am using python 3.9 will you please help me
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.
Bro you solve my problem because I was confused in kivy or kivymd app system finally I got it. Thanks a lot🙏🙏
This does not work for recent versions of Kivy. It would be nice to see a update for this tutorial.
hello, if there are such videos here, can you throw it off
Thank you so much for such great videos, i like them a lot!
Please do more tutorial on kivyMD
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
Hi Erik .I get error on the navigationdrawediconbutton
How can I connect firebase to my kivy app?
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
Can we do it in pure python way no kv design code.
Good job!
Sick Man!! Thanks a lot
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?
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)
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'
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
can u tell me what idle are u using?
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.
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')]]
Thank you so much!
Sir How can we add image to navigation drawer
how do you switch screens without the toolbar
MDNavigationDrawer should be under of the Screen Manager for who using MDApp
Thanks for this! I couldn't figure out why the color schemes were dark when using the MDNavigationDrawer
Cool thank you!
What you are doing isn't working on my macbook.
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 :-)
The IDE is PyCharm. Thanks for watchin!
@@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 :-)
hello, exist the code in github?, thanks
Just put it up for you!
@@erik-sandberg I have a doubt github.com/Dirk-Sandberg/KivyMDNavDrawerAndScreenManager/issues/1 thanks
Great video! What IDE do you recommend? I'm following your tutorials on installing Kivy.
I use PyCharm and love it!
@@erik-sandberg, thank you!
@@erik-sandberg hey how would you change screens without the toolbar??
I use VS Code
What version of kivymd do you use?
This was made with version 0.100.2
excuse me, how can I make a floating drawer, instead a static one you just showed
Hi, how do I call a function defined in .py file on clicking of a button defined in .kv file ?
use on_release method in kv file to call the function defined in .py
in the list ["menu",lambda x:callback()]
how that function taking value of x ?
I think for event!
@@HelloWorld-fh2ge how that function taking value of x ?
give me a python simple example ..
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 "
replace it with MDNavigationLayout
Would you please provide your source code
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
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.
@@erik-sandberg Thanks. Regards
paste the code someone pls !
Great!
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.
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.
I posted a fix here: github.com/Dirk-Sandberg/KivyMDNavDrawerAndScreenManager/issues/2
There's a new a version of kivy so pls update this
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.
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
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
@@erik-sandberg oh great! I will thanks erik!!! You the man
is there any one how can help me out about this video pls
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.
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.
@@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.....
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?
@@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.