I'm new to Python and Kivy. I come from a background of C, C++, C#, and a few other languages. Enjoyed this project. I looked at the code on the webpage and then hand typed it in. Took me less than an hour. Of course I'm the king of typos, and missing things, losing my place, etc. so it also got me used to learning to read the error codes in the output and track down the problems also causing me to have to read the code and understand what's actually being done. It's all good. Took about an hour to debug all my mistakes, but it was great experience for me. My mistakes have always been a long term learning tool in learning languages. I did go through all the tutorials leading up to this project. I appreciated them. Thanks for sharing.
yup the exact question I've been working on welp. If you are on windows the better way is throught a Ubuntu virtual machine I'm using Oracle VM virtualbox, then you set-up kivy and all your stuff there you can then install buildozer. Once all that is set-up navigate to your app directory using the terminal than simply, buildozer init (this creates a configuration file) then buildozer -v android debug, to build a debug version it will appear in the bin folder in your app directory once done. You may have to patch a bunch of problem along the way this is how it is but this technique will yield you a .apk. I came back to this channel because sometimes my .apk doesn't work and closes on opening but I haven't figured out why yet so I'm wondering if there is protocol to follow as to where I put the code inside the main.py document or maybe it's the shitty way I code with lot's of global variable. Anyway hope this helps have a great day and Merry Christmas 20202
Can you upload a video where you show how to allow the users upload files such as images, videos, pdf...? Love your videos tho and the way you explain, continue
if you are using .split(';') make sure to validate the char is not inputted by user otherwise it will throw an error you can validate user input only alphanum allowed maybe
Can someone help? I'm getting the error: TypeError: cannot unpack non-iterable int object. For line: password, name, created = db.get_user(self.current)
Thank you so much Tim for your helpful videos. But could you show us how to convert this app to apk for android? Because the only reason I am learning Kivy is to make android apk.
Buildozer on a Ubuntu virtual machine, I described it in other comments on this video look it up good luck with your project friend and Merry Christmas 2020 :)
Great tutorial on kivy...Thank you so much! Only thing is missing is 'how to convert the kivy app to apk for android' Please just show us how to do it....thanks!
on this today, having an issue with packaging, docs say "Note Currently, packages for iOS can only be generated with Python 2.7. Python 3.3+ support is on the way."
hey, guys. i recommend this for storing data and loading data, it saves the dict as a string and converts the string back to a dict: import ast def save_data_local(): # saving the data locally in a text file. print("saving data locally") with open("data.txt", "w") as file: file.write(str(dict)) def load_data_local(): with open("data.txt", "r") as file: for line in file: # there should only be one line anyway lol. data = ast.literal_eval(line) print(data)
I never thought one day I might hate a GUI technology more than HTML well I guess well-done kivy. you did it. no wonder why no one mentions this for mobile development. I don't get it why this is popular among python programmers. I mean come on both pyqt5 and tkinter are more legit than this. unless you really wanna build something for smartphones which I guess there are no other options for python developers in which case I think you are better of learning react-native and someone actually might hire you for that at least. ....................................................................................................................................... tnx, any way Tim nice content bro.
Sir Tim, I would like to know if have you ever develop a mobile app via kivy/ kivymd with mysql database? What procedure you might recommend to develop a mobile app?
How would you be able to add a network functionality using Kivy? By this, I mean something like storing and retrieving the usernames and passwords over a network. If anyone knows I would appreciate the help :)
Greats vids thanks. Still haven't got kivy working for me yet. Do you think it could be my version of python. I was using 3.7 but I notice that even matplotlib wasn't supported with that version yet. So I went back to 3.6 thing is matplotlib works now but kivy is still not. Do you think I may have to go back to even 3.5. Other than that I can't think of anything else. I followed your steps precisely a few times. What do you think. Anyhow just about to listen to the second episode of your podcast. Been looking forward. Thanks. Cheers
No problem I still followed along and took notes. I'm gonna give it a couple days, and come back to it fresh. What are you planning for the next tutorial? If you don't mind me asking
Wow this was incredible ,,, Would you please create an android or desktop app ,one page with text in it ,another with picture and a functional dial button using python in anaconda , Im struggling with it
thanks so much for this tutorial i'm looking to make simple app but i saw before some apps working by just small icon stack in left screen and when you pree icon open list , like master cleaner app may you tell us how we do that icon
creating .apk file on windows doesn't seem possible tho at least that's the impression I get after my research and setting up my buildozer environment. You gotta use a Ubuntu Virtual Machine, I know sounds scary... I described it in the post higher up in the comment section if you are interested by doing it yourself without too many videos. There surely is a video on that somewhere thought. Merry Christmas 2020 hope this helps :)
Hi Tim! I have a request to make! Can you please do a tutorial on how to actually package an apk file in kivy through Windows. I've really followed your tutorials this far and I've even done a school project on this, but I'm stuck for days now at actually packaging the app as all methods are for Linux OS and not Windows. So can you please make a tutorial on that. Thank you so much man, I would really appreciate if you could do it.
@@TechWithTim yes I did try that so much without any success. Anyway thanks so much, keep doing these tutorials on Python, you're great at teaching them than many other I've seen so far.
how do i do this: 1. user will type some input (can be anything for eg username) 2. after clicking submit, the username will be printed on the kivy app itself, inside another box please help
hey..i am running the same code u mentioned below the screen, but everytime i am running it, output says no file or directory named users.txt what should i do?
Hi, I was working on something that is similar to your MainWindow and was wondering how does the window call the function on_enter? I seem to have trouble getting the information on screen
did you figure out how that works. I just don't get how the on_enter() method is called. his code works fine but i don't know how and when the on_enter() method is executed. please help me understand if you've figured it out. Thank you
to build your .apk you'll need a Linux machine I described the process of using a Linux virtual machine under windows on other comments on this video. Hopes this helps cheers. Merry Christmas
I can't understand why the kv file is loaded and stored in the kv variable if the kv variable won't be used anywhere. Then the program magically finds all the stuff written in the kv file. What role does the Builder have in this program.
Running your code from your own files - i get an error that the .txt file does not exist. All four files are in the same exact folder. Not sure what the deal is...
I am getting an error while running this code. password, name, created = db.get_user(self.current) TypeError: cannot unpack non-iterable int object @Tech with Tim please advise
hello, can someone please help me why am I getting a too many values to unpack (expected 3) error? As I am used this video to create my own different app. This is my code where the error is happening: def load(self): self.file = open(self.filename, "r") self.records = {} for line in self.file: line = line.strip() date, time, created = line.split(";") self.records[date] = (date, time, created) self.file.close() Thanks
When i try install kivy i typed "python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew" than i get this error "Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: ) No matching distribution found for kivy.deps.sdl2" Please can you help me?