i know Im randomly asking but does any of you know a way to log back into an instagram account?? I was stupid lost the password. I would love any tricks you can offer me.
I had tried Kivy a year ago when I started learning python, I gave up as my degree is going for cybersec software engineering and pen tools typically don't use a "nice" GUI, however I want to start putting my apps on my phone so took another look at Kivy, your video was amazing! Made it make perfect sense and now I'm super excited to build some stuff :) Thank you!
Well done. This really helped explain how the two files link together and how to launch functions and update content. Thank you for taking the time to make this. I look forward to seeing what other content you have created!
Thank you SOOO much for this. I understood the syntax and everything, but I didn't understand how it fully worked with a python file. You explained it so well. Thank you!!!!
Thank-you for this tutorial. This is one of the best and easiest to understand tutorials and concepts dealing with Kivy and it's language and how it works with Python.
Omg I love you I finally understand all these tutorials try to enlighten me but I end up just mindlessly copying their code, but now I am only halfway through the video but I am learning so much! I thank you so much 🅱
Thank You Amanda for sharing this tutorial, You saved my life. :) I have no idea, why are all of kivy tutorials about only "coding", but the explanation is missing. Keep going! And you should create a Patreon account as well!
Awesome!!. I was watching other tutorials and none of them explain it in a way that a programing noob like me can understand. Hope to see more videos from you.
Very clearly explained. I've watched a couple other beginner kivy videos and even built a simple app befroe watching this video. My app works, but I wasn't exactly sure how until watching this video. Great explanation of root and self. I think I get it much clearer now. Will you do a video on if __name__=="__main__": ? I've seen a couple on that, but nothing broken down as well as this one :)
You probably have had your answer by now, however for anyone wondering : inside a python script, __name__ is a special variable automatically defined, I do not remember what are its values, however over the years I only had to remember that when its value is equal to "__main__", it means that the script is actually the main process. If the script is imported (so, the script is a module), __name__ is not equal to "__main__". Long story short, the condition if __name__ == "__main__" : is used to only execute following code if the script actually is the main script (not an imported module).
This looks like a nice tutorial, but i must say there is a misunderstanding about the root widget, (around 8:30), this is the root of your rule, but this rule is not the root rule, as it's surrounded by less than/greater than, symbols. The root rule, the one returned when you load a kv file, is the one that doesn't have these. root always refer to the root of the current rule, in kv, while app.root always refer to the root of the application, which is basically what build() returns (by default, the root rule of the app's kv file, but here, you override that, and return an instance of the widget you defined the rule of, it's your root widget, yes, and it has a rule, yes, but that's not what we usually call a root rule).
OMG! Tshirtman saw my video. I might die! This was posted a while ago and I know heaps more now and also I have no problem lying to students a little bit sometimes to simplify things.
@@hogesonline haha, props to you making videos, better them be slightly wrong and useful than not there at all (like my full non-existing definite kivy tutorial that i've been wishing i had done already for years). Can't blame you simplifying for students, i almost always get into trouble for not doing that :D.
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
In case anyone comes across this error: " TypeError: 'NoneType' object is not subscriptable" It could well point to your .kv file being in error - Ensure the name is cointoss.kv if your App class is CoinTossApp - Check for errors in the .kv file. In my case I had over indented the 'text:' line on the first 'Label:' It took a while to find...
I just use a text editor and command prompt but I know others who have used pycharm. If you run the .py file using Python (or even using IDLE) and your installation of Kivy is done properly and your environmental variables are set up then it should be fine. The Python interpreter imports Kivy and does the compilation before running the app.
OS? I've had occasional issues getting the app to realise that it should be connecting to the kV file. There are some notes on kivy.org on how to read the interface stuff in as a string and put it all in the python file. This worked for me on those occasions.
I know I'm coming to this a bit late but it is possible to do the text changes right in the .kv file. Button: ... on_release: clicked.text = "Has been clicked" You can even reset the text in the Label widget with the Label's on_touch_down: method. I can send my example .py and .kv files if you can tell me where to send them. I'm just not sure if you want to teach this to your students or not but there it is.
@@hogesonline I'm sorry but I don't understand the use of the word "ugly" in this context. I think the code I wrote to implement the text changes is quite straightforward and streamlined. Understand that I did not invent the technique but have seen it used many times elsewhere. I simply thought you might be interested, from one teacher to another.
Interesting question that is pretty contextual. I was teaching in a school and we'd subscribed to some absolutely fantastic online learning resources for learning Python 3 (groklearning.com) in order to cover all the other requirements of the course. My first year with teaching Kivy the kids would spend a semester learning Python 3 and when we got to UI design and implementation they'd have to port their functions to python 2.7 to make it work with Kivy. That was a tough year. This video is from that course.
Amanda Hogan how about simple image Downloader Or about taking image from the camera, recording voice something simple just for learning, and thank you so much for your replay, I have watched many videos on RU-vid trying to learning kivy but you are the most easy to understand, great teacher, thank you again I appreciate you
i have got a doubt. if i use kv language, where should i write the kv language's code? in notepad? or in a new file using python? where? and if i use notepad,new file or anything else to write the kv code, then that kv code should be in a another place(file). then, if i send that kivy android app(main file) to my android phone, then how that kivy app will use that kv language code(as kv code is in another file or in notepad)?
You can choose to put the kv code in a second text file with the extension .kv or you can have it built from a string within the python file. It's a couple of tricky steps to turn your python and kv into an app for Android. That process will combine the two files.
@@hogesonline how can i combine these two files for android? i have windows. not linux or os x. so, i cant use buildozer. how can i do these procedure in windows? thanks for your help. please help me combining these in windows
Hey, I'm getting an error that says: File "kivy_tut3.py", line 1 : ^ SyntaxError: invalid syntax Now, the weird thing is that kivy_tut3.py doesn't have that line as a first line; I named that file kivy_tut3.kv. How did you name your files? Should I be using a *.kv or something else? Thanks, MK
Michelle Kaiser that looks like you only have one file. You need the main .py file and a separate .kV file which doesn't get "run" but is opened by kivy to build the interface.
Hey, thanks for responding. I definitely have two files. I renamed the main one to main.py, the second one is just called kivy_tut3.kv. Windows wanted *.kv, not *.kV, so I don't know if that is relevant. Although, rerunning the .py file has now resulted in a giant fist full of errors. It can open the "Coin Toss" window, but there isn't any text or buttons loading. I've dropped off a detailed error message at the kivy forums... kivy.org/?place=forum%2Fkivy-users&hidesubject=true&hideforumtitle=true&showsearch=true&showpopout=true&parenturl=http%3A%2F%2Fkivy.org%2F%23
Ufuk Eskici if there aren't any errors in terminal then the dynamic link between the kV and python files doesn't seem like it's working for you. Are your files in the same folder and named as they are in the video?
I don't use pycharm so I'm guessing... You never execute the kv file you need to execute the py file. You can force the python to go and look for the .kv file if it's not playing nice by using from kivy.lang import Builder Builder.load_file('kivi.kv') Otherwise you can do away with the kv file entirely and just load a Kivy string in you py file. Or some people import the Kivy objects and use them directly (but I think that's harder to think about correctly)