UPDATE 01.2021: You have to change NavigationLayout to MDNavigationLayout, and "lambda x: nav_drawer.toggle_nav_drawer()" to "lambda x: nav_drawer.set_state("open")", your welcome :)
thank u for the effort we hope that u will finish all series kivymd till packing apk and we will never forget that for u u will change alot of lives iam try to learn so i can take care of my family you make difference thank u
Change NavigationLayout to MDNavigationLayout. Also MDToolbar did not work. I changed it to MDTopAppBar for both top and bottom. For Bottom Toolbar i used this code: "... MDBottomAppBar: MDTopAppBar: title: "Help" ...." This worked for me.
I want to add a toolbar which includes buttons to chance screens. The problem is, that I need the ScreenManager for the toolbar and for the multiple screens. How can I do this?
Hello sir I'm a student and working on a school project where I want to integrate this navigation drawer, but I always get an error whenever I write this code. I also tried the code in a single file where I wrote it as it is you have shown here, but still it gives the same error. Could you please help me in this. Waiting for your helpful reply.
Thanks for vedio. Q-1=>Can You Please tell me how can I Put Data tabel or a text entry at the place of that hello world label? Q-2=>How can I get text of entry text from that helper string?
Very Nice video Man! Pl. keep continue with your nice work. if u got time from your busy schedule then I wanna know how to display real time json api using KivyMD. Thanks again!
Sir I am writing your same code but I am getting this error ReferenceError: weakly-referenced object no longer exists.... Please sir explain me Why this error is coming and give me solution to solve it...
hello there I was getting an error continuously when I try to run this code--> (the code was here) from kivymd.app import MDApp from kivy.lang import Builder from kivy.core.window import Window Window.size = (300, 500) navigation_helper = """ Screen: NavigationLayout: ScreenManager: Screen: BoxLayout: orientation: 'vertical' MDToolBar: title: "Demo" left_action_items : [['menu', lambda x : nav_drawer.toggle_nav_drawer()]] elevation: 10
Widget:
MDNavigationDrawer: id: nav_drawer """ class DemoApp(MDApp): def build(self): screen = Builder.load_string(navigation_helper) return screen DemoApp().run() I think this is same as your code and the error coming is given below --> [INFO ] [Logger ] Record log in C:\Users\ELCOT\.kivy\logs\kivy_20-10-05_31.txt [INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.2.0 [INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.2.0 [INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.2.0 [INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.2.0 [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\__init__.py" [INFO ] [Python ] v3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] [INFO ] [Python ] Interpreter at "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\Scripts\python.exe" [INFO ] [KivyMD ] v0.104.1 [INFO ] [Factory ] 184 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [INFO ] [Window ] Provider: sdl2 [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] GLEW initialization succeeded [INFO ] [GL ] Backend used [INFO ] [GL ] OpenGL version [INFO ] [GL ] OpenGL vendor [INFO ] [GL ] OpenGL renderer [INFO ] [GL ] OpenGL parsed version: 4, 5 [INFO ] [GL ] Shading version [INFO ] [GL ] Texture max size [INFO ] [GL ] Texture max units [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [INFO ] [Text ] Provider: sdl2 [INFO ] [GL ] NPOT texture support is available Traceback (most recent call last): File "C:/Users/ELCOT/PycharmProjects/KivyMD-Basics/navigation _drawer.py", line 34, in DemoApp().run() File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\app.py", line 829, in run root = self.build() File "C:/Users/ELCOT/PycharmProjects/KivyMD-Basics/navigation _drawer.py", line 30, in build screen = Builder.load_string(navigation_helper) File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 405, in load_string rule_children=rule_children) File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 659, in _apply_rule child, crule, rootrule, rule_children=rule_children) File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 659, in _apply_rule child, crule, rootrule, rule_children=rule_children) File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 659, in _apply_rule child, crule, rootrule, rule_children=rule_children) [Previous line repeated 1 more time] File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 616, in _apply_rule cls = Factory_get(cname) File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\factory.py", line 131, in __getattr__ raise FactoryException('Unknown class ' % name) kivy.factory.FactoryException: Unknown class Process finished with exit code 1 please help me to solve this error
UPDATE 01.2021: You have to change NavigationLayout to MDNavigationLayout, and "lambda x: nav_drawer.toggle_nav_drawer()" to "lambda x: nav_drawer.set_state("open")", your welcome :)
lmao dude you are an absolute homie thank you. Wasnt working so ctrl+f "navigation" and boom. Thanks
I've been looking for this all day. This comment must be on top, thank you so much!
@@bikappa thanks bro
You saved me some hours, thank you
Genius.....You Saved me a hell lot of time researching
5:00 toggle_nav_drawer() is depreciated, you can use set_state() and it has the same effect. At least in Dec 2020 :D
thanks man!
Thnx man!
Thank You So Much Man! 😊
thank u for the effort we hope that u will finish all series kivymd till packing apk and we will never forget that for u u will change alot of lives iam try to learn so i can take care of my family you make difference thank u
Hey I got an error saying import error no module named "Navigation layout"
I am eagerly waiting for your every upcoming Videos bro 😇👍👍
Change NavigationLayout to MDNavigationLayout. Also MDToolbar did not work. I changed it to MDTopAppBar for both top and bottom.
For Bottom Toolbar i used this code:
"...
MDBottomAppBar:
MDTopAppBar:
title: "Help"
...."
This worked for me.
Thank you
I want to add a toolbar which includes buttons to chance screens. The problem is, that I need the ScreenManager for the toolbar and for the multiple screens. How can I do this?
MDNavigationLayout *
Thankyou dude
Thank you a lot for this video! It helped a lot
Hello sir I'm a student and working on a school project where I want to integrate this navigation drawer, but I always get an error whenever I write this code. I also tried the code in a single file where I wrote it as it is you have shown here, but still it gives the same error. Could you please help me in this. Waiting for your helpful reply.
Well explained . Thank so much !
i am always waiting for new videos of kivymd and love to watch them thanks sir
I really appreciate that you do not use the kivi language .kv which in my opinion complicates things more ! Thanks for the tutorial !
some function of kivymd changed in new update so make sure your function names is correct
Please can your next video be on how to change screens🥺🙏🏾
did you fugure it out ?
Can you show this using the Builder.load_file("file.kv") with Screen_Manager being involved for multiple screens? I am having difficulty.
Screen:
MDNavigationLayout:
ScreenManager:
Screen:
BoxLayout:
orientation: 'vertical'
MDTopAppBar:
pos_hint:{'top':1}
title: 'DEMO'
left_action_items:[["coffee",lambda x: nav_drawer.set_state("open")]]
elevation:18
Widget:
MDNavigationDrawer:
id:nav_drawer
BoxLayout:
orientation:'vertical'
MDLabel:
text : "hello"
lambda x: nav_drawer.set_state("open") AND MDNavigationDrawer has right names so see it correctly
Thanks for vedio.
Q-1=>Can You Please tell me how can I Put Data tabel or a text entry at the place of that hello world label?
Q-2=>How can I get text of entry text from that helper string?
Very Nice video Man! Pl. keep continue with your nice work. if u got time from your busy schedule then I wanna know how to display real time json api using KivyMD. Thanks again!
Sir I am writing your same code but I am getting this error ReferenceError: weakly-referenced object no longer exists....
Please sir explain me Why this error is coming and give me solution to solve it...
Same problem ,
ReferenceError: weakly-referenced object no longer exists
@@mohammedMusabKhan Bro I think try it on your PC with different pycharm version
Nice video, 1 like for your series 👌
Great 👍🏻
hello there I was getting an error continuously when I try to run this code--> (the code was here)
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.core.window import Window
Window.size = (300, 500)
navigation_helper = """
Screen:
NavigationLayout:
ScreenManager:
Screen:
BoxLayout:
orientation: 'vertical'
MDToolBar:
title: "Demo"
left_action_items : [['menu', lambda x : nav_drawer.toggle_nav_drawer()]]
elevation: 10
Widget:
MDNavigationDrawer:
id: nav_drawer
"""
class DemoApp(MDApp):
def build(self):
screen = Builder.load_string(navigation_helper)
return screen
DemoApp().run()
I think this is same as your code and the error coming is given below
--> [INFO ] [Logger ] Record log in C:\Users\ELCOT\.kivy\logs\kivy_20-10-05_31.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.2.0
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\__init__.py"
[INFO ] [Python ] v3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\Scripts\python.exe"
[INFO ] [KivyMD ] v0.104.1
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] OpenGL parsed version: 4, 5
[INFO ] [GL ] Shading version
[INFO ] [GL ] Texture max size
[INFO ] [GL ] Texture max units
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [Text ] Provider: sdl2
[INFO ] [GL ] NPOT texture support is available
Traceback (most recent call last):
File "C:/Users/ELCOT/PycharmProjects/KivyMD-Basics/navigation _drawer.py", line 34, in
DemoApp().run()
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\app.py", line 829, in run
root = self.build()
File "C:/Users/ELCOT/PycharmProjects/KivyMD-Basics/navigation _drawer.py", line 30, in build
screen = Builder.load_string(navigation_helper)
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 405, in load_string
rule_children=rule_children)
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 659, in _apply_rule
child, crule, rootrule, rule_children=rule_children)
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 659, in _apply_rule
child, crule, rootrule, rule_children=rule_children)
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 659, in _apply_rule
child, crule, rootrule, rule_children=rule_children)
[Previous line repeated 1 more time]
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\lang\builder.py", line 616, in _apply_rule
cls = Factory_get(cname)
File "C:\Users\ELCOT\PycharmProjects\KivyMD-Basics\venv\lib\site-packages\kivy\factory.py", line 131, in __getattr__
raise FactoryException('Unknown class ' % name)
kivy.factory.FactoryException: Unknown class
Process finished with exit code 1
please help me to solve this error
Just change Toolbar to MDTopAppBar
I am getting an Error of "too many indentation level" at the navigation_helper
Nice video👏🏾👏🏾👏🏾
Thanks 💯
Can you make a video for share button for your app
Hello Sir, I'm getting an kivy.factory.FactoryException: Unknown class error. Please, help
Just change Toolbar to MDTopAppBar :)
You're my ideal...
Hello here.....i have an error it says kivy.uix.screenmanager.ScreenManagerException: ScreenManager accepts only Screen widget😔
I'm just a beginner and I don't know what causes the error😔
Put the whole BoxLayout within a second screen.
How long this series will be ?
Till the time goes on....
sir how can we create tabs?
Woooow ;) thx ;)
Plse let some one help me the navigation layout error
Can we deploy this app in Play store bro..?
yup
thanks
You're welcome!
I am a boy, years: 11, class: 6th
😇
топ видео
Hhhhh you tell so mach "oh right guys"
Didn't explain too much at all. Very disappointing. 😐