attreyabhatt / kivymd-basics Goto Github PK
View Code? Open in Web Editor NEWBasics of KivyMD for the tutorial video series.
Basics of KivyMD for the tutorial video series.
Creates two both the screens together overlapping
Hey, I copied the code but when I ran it, this error always happened. I've search the internet for solutions but none of them worked.
I'm getting ReferenceError while running this code
Main.py
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.core.window import Window
navigation_helper = """
Screen:
NavigationLayout:
ScreenManager:
Screen:
BoxLayout:
orientation:'vertical'
MDToolbar:
title:'Demo Appication'
left_action_items : [ [ "menu", lambda x: nav_drawer.toggle_nav_drawer() ] ]
elevation:10
Widget:
MDNavigationDrawer:
id:nav_drawer
"""
class DemoApp( MDApp):
def build( self ):
self.theme_cls.primary_palette = 'Red'
screen = Builder.load_string( navigation_helper )
return screen
DemoApp().run()
Output:
[INFO ] [Logger ] Record log in /storage/emulated/0/Books/Python/Games/KivyMD/.kivy/logs/kivy_20-09-29_10.txt
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/init.py"
[INFO ] [Python ] v3.8.3 (default, May 27 2020, 02:08:17)
[GCC 9.3.0]
[INFO ] [Python ] Interpreter at "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3"
[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 ES 2" graphics system
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version <b'OpenGL ES 3.2 [email protected] (GIT@cf57c9c, I1cb5c4d1cc) (Date:09/23/18)'>
[INFO ] [GL ] OpenGL vendor <b'Qualcomm'>
[INFO ] [GL ] OpenGL renderer <b'Adreno (TM) 509'>
[INFO ] [GL ] OpenGL parsed version: 3, 2
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <16>
[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
[WARNING] [Base ] Unknown provider
[INFO ] [Base ] Start application main loop
[INFO ] [Base ] Leaving application in progress...
Traceback (most recent call last):
File "/storage/emulated/0/Books/Python/Games/KivyMD/Navigation Drawer.py", line 28, in
DemoApp().run()
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/app.py", line 855, in run
runTouchApp()
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/base.py", line 504, in runTouchApp
EventLoop.window.mainloop()
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/core/window/window_sdl2.py", line 747, in mainloop
self._mainloop()
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/core/window/window_sdl2.py", line 479, in _mainloop
EventLoop.idle()
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/base.py", line 339, in idle
Clock.tick()
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/clock.py", line 591, in tick
self._process_events()
File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
File "kivy/_clock.pyx", line 154, in kivy._clock.ClockEvent.tick
File "kivy/_clock.pyx", line 86, in kivy._clock.ClockEvent.get_callback
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/kivy/weakmethod.py", line 56, in is_dead
return self.proxy is not None and not bool(dir(self.proxy))
ReferenceError: weakly-referenced object no longer exists
Hello
I'm making an app using kivymd, and I have 2 pages one that you put the data input and I was wondering how can I get the second one that can pull the data from the database and show them in kivymd table
Thank you
How can we create datatables for other screens? In your example you created on main app screen but I wanna create on other screen. But I don't know how to do. Can you please help me with this ?
Datatable code is not working properly
In 10 - toolbar / main.py
raise FactoryException('Unknown class <%s>' % name) kivy.factory.FactoryException: Unknown class
why this is happened??? as I used your repo as it is.
you didn't make a MDTabs tuto.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.