This has given me a very good start. I now see how to navigate among screens. My next step is surely learning about the Screen class, so I can layout each Screen. Then I must figure out how to add Widgets to elements on each screen to simulate a physical object's functionality. Thank you!
Great tutorial! You discuss a lot of things that others cover but don't seem to cover them as well as you do (make sense??). The fine detail is want really counts for me ... I get a much better understand of it from you. If you wanted to explore more UI elements I'd be interested in pop ups for example and maybe custom skinning (if that's the term) to give your app it's own look and feel? Or more on how the binding works between the py and kv? Or adaptive text sizing on buttons (widgets) as they grow or shrink with a change in the dimensions of the app? Keep up the great work. I look for to seeing the next instalment!!
How to pass the values from one screen to another ex:scr1 has a text input with my name and when I click the submit button it has to move to the next screen and print the previous screen input my name
Very good and instructive video, thank you for making it. I just had a question from curiosity: Why when you stated the ObjectProperty for each screen variable did you put them all in the manager class, why did you not put each one in the class for each screen? Would this change (or break) the performance? I'm only slowly beginning to get how the classes and objects are working with kivy, so forgive me if this is a dumb question. Thanks again for the helpful video.
I would like to make a book app with choose your own adventure style. How do I place text at the top and the buttons listed at the bottom of each page? I tried this but it doesn't work, in the kv file: #:kivy 1.10.0 : rows: 3 padding: 10 spacing: 10 BoxLayout: oriention: "horizontal" text: "Hello and welcome to the adventure." BoxLayout: spacing: 10 Button: text: "Go to page 2" on_press: root.manager.current = 'pg2' #calls name, not id BoxLayout: spacing: 10 Button: text: "Go to page 3" on_press: root.manager.current = 'pg3' .... (rest of file is similar as yours. I changed some variables because I got confused which variables matched up)
hello, this was a very helpful video especially since I am three weeks old in Kivy. The only downside however is that when I built an apk out of it with buildozer , the app fails to launch on my android device. Why is this?
Hi. It could be any number of reasons. One way to find out (this is what I do) is to use adb logcat. Here's what I do( I am using Linux, so if you're on Windows or something, you would need to figure out these steps for your own situation ). 1. I install the apk of the broken app on the device with buildozer. 2. Leaving the device connected to the computer, I open a terminal on the computerl and start adb logcat telling it to write to file(adb must be installed of course) I do this with 'adb logcat > log'. 3. I run the broken app on the phone. Let's say after a moment it crashes. 4. I then stop adb logcat and open the log file it has written. Everything the phone was doing will be logged here to some degree. This is where I search for errors. It's not always easy to find them since there is a lot of irrelevant info in the file, but you get better at it after a while. One way to start might be to do a search on the keywords "python" and/or "Error". That sort of thing. One issue that I regularly ran into was that I hadn't provided the name of a module I was using in the buildozer.spec file. Whenever you import a module in your kivy app that isn't a part of the standard Python distribution, you need to mention it in the buildozer.spec (it's not hard to find where). I highly recommend signing up the kivy users group on google(just google it). Hope this helps.
Hi there, I really think the best thing for you would be to consult the kivy official documentation at kivy.org. Also, check out the kivy google group, it's really helpful for specific issues like yours. Hope that helps.