Це відео не доступне.
Перепрошуємо.
Mobile App with KivyMD - Python GUI for Android - Binary to Decimal Converter
Вставка
- Опубліковано 18 сер 2024
- In this step by step tutorial, we will create a Binary to Decimal / Decimal to Binary converter app - with the help of Python and KivyMD 🥝🥝🥝
This tutorial is a bit more advanced than the rest as it involves classes, but don't worry - I will post a tutorial about classes shortly! so if there's anything you didn't understand, you'll get a proper detailed and simplified explanation very soon 😉
🥝 Part 2 - Fraction Conversion & Exceptions Tutorial 🥝:
• Expand KivyMD GUI App ...
🥝 PART 3 - Convert Python App to Android .apk 🥝
• Convert Python to Andr...
You also might find these tutorials helpful:
My Binary to Decimal Math Tutorial:
• Binary to Decimal - Co...
My Python Classes & Objects Tutorial:
• Python Classes and Obj...
⭐ time stamps: ⭐
*******************************************
00:00 - intro
00:38 - MD toolbar Widget
00:23 - Icon button for MD toolbar
03:47 - View the full list of icons
04:18 - Image Widget
05:25 - Text Input Widget (MD Text Field)
07:21 - MD Label Widget
09:15 - MD Button with ROUNDED CORNERS
10:29 - Convert Binary to Decimal
13:43 - Conversion Flip and State
16:20 - Convert Decimal to Binary
18:38 - Change KivyMD Theme
20:21 - What's left to do?
21:37 - Thanks for watching! 😀
PLEASE NOTE:
Both flip() and convert() can be done in fewer lines of code!
Check out the complete app on Github (link below) to see the shorter version
⭐ starter code: ⭐
*******************************************
from kivymd.uix.screen import MDScreen
from kivymd.app import MDApp
from kivy.uix.image import Image
from kivymd.uix.button import MDFillRoundFlatIconButton, MDFillRoundFlatButton
from kivymd.uix.textfield import MDTextField
from kivymd.uix.label import MDLabel
from kivymd.uix.toolbar import MDToolbar
class ConverterApp(MDApp):
def build(self):
screen = MDScreen()
#UI Widgets go here
return screen
if _name_ == '__main__':
ConverterApp().run()
*******************************************
Github Repository:
github.com/Mar...
All available KivyMD icons:
kivymd.readthe...
Thank you so much for watching! 🤩
Beautiful Kiwis in the background are from:
freepik.com
I've been trying to learn Kivy for almost a whole calendar year with no success...UNTIL I FOUND YOUR VIDEOS. Now I'm making tremendous progress learning Kivy and building my apps! Thanks a million! 100% recommend!
I accidentally stumbled onto your video. Your explanation is very clear, especially to a beginner in python like me. I checked the titles of your other videos. They look wide-ranged. Excellent. That's what I am looking for. I am sure you have talked about OCR. What I am interested is how to do my own tensor training in a foreign language. As you might easily imagine, for a person who is not a frequent user of a particular language, the training may not be as extensive as one who uses it everyday. That's why I am very interested in how to my own training.
This mobile tutorial series is a very good idea 😊 I'm soo curious what python can do on mobile development. I like to see topics like - multi-screen app, passing data to another page, store data on the local devices, state management, animations, responsiveness, internationalization - I think those topics are most important to build something dissent. For now, there is soo big choice of tech to build a mobile app ( C#, Java, Kotlin, Swift, JS, Dart - those first coming to my mind) aaaand Python - I hope this tech will be developed. I see potential in it 😉💪
I'm with you on that, Ravi! I'm only just getting into Python for mobile - didn't have much luck with bog-standard Kivy - but this is looking very promising, as well as attractive, due to the influence of Material Design. I hope Mariya makes heaps more of these - I have subscribed!! 👌
I think we all want more videos about KivyMD
@@python4692 Even with KivyMd, I've been struggling a bit. What baffles me is positioning widgets within the kv file, specifically arranging box layouts and centering and offsetting and yeah, been having a big read and trial and error in VSCODE but those widgets are obstinate! 😠
I tried Kivy and storing data on the local devices was the most gruesome thing I ever had to do.
I already know this's going to be a really good video!
Like I said xD, can't wait for part 2!.
Thank you!! don't worry, I'm gonna film it this week! 😉
Great as always! Greetings from Brazil!
Thank you so much Guilherme! Glad you liked it! 😊
Very Very good tutorial! Explained in a simple manner. Thanks to this tutorial i was able to make my own KivyMD project that lets you send emails! 👍
I can't shy away from saying that you are a great tutor. You've made it easy peasy. Wonderful
Машу настолько приятно смотреть и слушать, что я уже почти победил свою лень и наверно все-таки начну учиться програмировать на питоне :)
Ну и как лень побеждена? ) я так же смотрю))
Nice video! 🔥 Loving it so far!
Thank you so much, I'm glad you liked it! 😊
Hello, I'm Daniel Hung, I congratulate you for your excellent video.
I was looking for videos that explain kivy to me, I am developing an application to teach people to program through videos, and a heuristic multimedia environment.
In other words, it allows the student to intelligently relate the educational resources that he finds on his way, in this way when carrying out the projects, these resources are already available, and ordered in an intelligent way.
A hug and my friendship from Venezuela.🙂
19:15 is amazing reaction on the important fixing. Love it) this way must be teaching in the university with joyness and charisma like your.
Did I miss the part where your sample app ran on an actual Android device?
Probably is not running
Thanks a lot for helping me learn KivyMD!
By the way, I added an icon on the right of toolbar to make user select one of the themes (your favourite ones, of course). ;)
Keep coding :))
Just finished this part one. Thank you for your time and effort.
Great tutorial and inspiration ! This project will be very useful to realize my personal project that I'm working on right now.
That's fantastic Cédric Verdi! So happy to hear that! 😀😀😀
Best of luck with your personal project (and don't forget to let me know how it turned out! 😉)
You are a good teacher. congratulations we are learning through you.
I'm new to the channel and i just wanted to say that your tutorial was 🔥 thank you so much! Great job 👏
Thank you for the brief explanations!
nice little program, you make learning enjoyable, very clear with your explanations, i look forward to seeing the rest of the series.
Thank you very much for your Tutorials! They are very intuitive, I like the way how you express yourself and make it even more interesting. And of course, your beauty and cuteness make it worth watching every one of your videos... I really love them! 😍
class ConverterApp(MDApp):
def build(self):
screen = MDScreen()
self.toolbar = MDToolbar(title="Binary to decimal")
self.toolbar.pos_hint = {"top": 1}
screen.add_widget(self.toolbar)
It is brilliant as it works very well. On your Video it was screen.add_windget(self.toolbar). I know you are extremely busy. I enjoy your videos. I was only pointing it to you.
Thank you so nuch for the awesome tip Peter! 😃 You are always more than welcome to correct/adjust/expand any piece of code I share 😁
I'm not offended by corrections, on the contrary - I'm excited to see how you guys make improvements to my projects! 😉
We are slowly building a nice community here to support each other so I always appreciate your input! 😃😃😃
Cheers! 🙂
@@PythonSimplified Thank you, just wanted to be a polite and helpful.
Thats amazing. I really like the way you explain. You make it exciting ☺️.
Thank you so much Mohammad! Super happy to hear you like my explanations! 😁😁😁
Your presentation is very nice indeed. I am a fan of Kivy and now will use KivyMD too.
Thank you so much Stephen! glad you liked it! 😃
Great video thanks for the knowledge u teach. I added a icon to chance the color for the app. It makes fun to play around with these things.
Have a nice Day all of you!
Hey mariya. How are you doing? I really appreciate you took the blue theme (I choose 🤣🤣 ).. Btw I wasn’t there while the video was premiering. Miss me?😏
Exactly what I needed !! ..
Mariya
This is such a great tutorial!!;)
Thank you so much Deepa rose! So happy to hear you liked my video!! 😀😀😀
I love it, I will practice it and I will be waiting for the exceptions part!
Awesome, thank you so much Ernesto! 😁 you won't have to wait very long! I'm gonna film this part by the end of the week 😉
Great . Keep it up 💖💖
I FOLLOW YOUR TUTORIAL AND I GET MY FIRST APPLICATION ! THANKYOU AND YOU LOOK SO CUTE 🧡🧡🧡
you are
A
M
A
Z
I
N
G
thank you so much for your lovely videos and hope to have a series of tutorials on kivy.
Hi,
First of all, thank you for your wonderful tutorials. I have dealt with frontend web programming before, albeit for a short time, and I am familiar with the concept of responsive design.
But I'm just getting started with KivyMD. You use constants, to define font-sizes, positions etc, in your video. (I have no problem with this as an introductory video). But ultimately, each device has different screen resolution and size. With CSS, we can define all of these values as relative values, so this is a requirement for responsive design. How does it work with KivyMD?
Can't wait for part 2 ....Thank You So Much
Hello Mariya, I am writing to thank you for your contribution, you have a very understandable way of explaining. But when executing the program it gave me an error, and I detected that the problem is in this instruction: from kivymd.uix.toolbar import MDToolbar, my question is: how did you manage to use the MDToolbar?
Thank you very much for video 🤠🖖
Greetings from Germany :)
Well done! Everything is very clear.
Thank you Py Thon! 😊
By the way, if you want to see how you can convert this code into a fully functional Android application - I'm premiering this tutorial in a little less than 1 hour 😀:
ua-cam.com/video/VsTaM057rdc/v-deo.html
@@PythonSimplified will see ;)
Great video!!! 🙌 Could you create a video showing how to turn Py file into APK to install on Android?
Absolutley Gabriel! We will compile this particular app to work on Android in part 3 of this project 😉
Next on the menu is handling exceptions and fractions, and once the app is complete and perfect - we'll move to the .apk part 😁
@@PythonSimplified still waiting
@@asadabbas6827 part 2 of this project will premiere tomorrow. The compiling process would be in part 3.
If you're in a rush - checkout Kivys' Buildozer 😉
Pretty and smart. I am learning python just because her videos are riveting
Why I cannot import MDToolbar, I tried many times I downloaded the kivymd package, still there is an error at MDToolbar import statement. why? Please solve my problem!
What version of KivyMD are you using? This video is a bit old, so you'll need an older version to follow through:
kivymd==0.104.1
As well as kivy==2.0.0
Please install these versions and try again.
Let me know if it works! 😀
@@PythonSimplified i find somme difficulties to install kivy == 2.0.0
Can you advice me please
Hello Marieee
Thank you so much for your amazing video
Could you please tell me which version of Kivymd you were using in this video?
thanksss
Very interesting, a bit complicated for me since I am new to Python, but thank you very much, I will try to do it when I increase my knowledge. Saludos desde Chile.
Muchas Gracias ODRACLIVE! 😁😁😁
I'll post a tutorial about Python Classes very very soon - and then all those "self" keywords and class functions would make much more sense then, I promise! 😉
Maryia,
Has something broken with kivyMD since you did this video?
"from kivymd.uix.toolbar import MDToolbar" fails.
File "C:\Users\xxx\PycharmProjects\Bin Dec Converter\main.py", line 7, in from kivymd.uix.toolbar import MDToolbar
ImportError: cannot import name 'MDToolbar' from 'kivymd.uix.toolbar'
(C:\Users\xxx\PycharmProjects\Bin Dec Converter\venv\lib\site-packages\kivymd\uix\toolbar\__init__.py)
Send more videos about KivyMD, please. I'm from Brazil and your videos have helped me a lot
Thanks so much , We need more video about kivy library please👆
Thanks for the tutorial. I enjoyed following along.
I don't know how you would do it, but I'd love to see you start with a TDD approch, ideally with pytest. Good luck with that.
Excellent presentation!!!
Thank you very much for your work. Today, by chance, in Telegram there was a post on your video on how to turn Python into an android, I looked and you impressed me very much. Catch like and subscribe. I hope for more and more good content on this topic.
big thanks for you (\/). can you make a video to show us how to convert this app to apk?
Hi Mariya, lets say I want to change the colour of the App title from black to green, in your case "Converter" how do I go about doing that.
Regards
Elvy
Thank you madam for this lesson!
Hi waiting from EGYPT 🙂
Thank you Amir! 😀
Greetings from Vancouver! 😊
I have a subroutine written in C, C++, and in C# to convert binary, octo, hex to decimal. I’m curious to see how they do it in Python. I’m interested in learning Python.
Hi Yola! 😀
If you're converting whole numbers, it's as simple as:
decimal_val = int(str(binary_val), 2)
binary_val2 = bin(decimal_val2)[2:]
Where bin() returns a string that starts with "0b" before the number itself -
so [2:] is just slicing off the unnecessary characters 😉
For fractions - it involves a bit more lines of code, I'll show you how to do it in the next tutorial, so stay tuned! 😀
Hello from France, i love your tutorials, i am doing at school the python and we are use kivy and kivymd framework, our teacher do not teach us nothing only give us homeworks and "let me know when yo are done", and is a bit hard for me since the teacher do not let us use kivy .kv files, only python and there is realy no videos tutorials or good documentation to do it right without the kv file. Can you do a nice tutorial as always using multiple classes for a simple application without using the kv file? thx very much
cant wait for the second part... ^_^
it's coming soon! 😊
Please make a video on kivy apps more advanced like an 'online shop' app. Thanks in advance.
Hi Kejin, I would recommend using web application libraries like Flask and Django to create online shops. You'll also need a strong backend and background with web security, as anything that includes collecting personal information such as credit cards and addresses - is on a different level than anything you've ever seen on my channel.
I don't see how such a project would work, as it would take months to create, and explaining months worth of work in a step by step tutorial - is not an easy task! 😅
Thank you for suggesting though! it's just a bit too complicated for my channel, at least at this point of time... in the future - who knows?? 😉
@@PythonSimplified Thanks for responding, in huge, might mention. Got interested in kivy since i saw your tutorials and thought of making a shopping app. Contents would be like taking orders, showing previous works, and taking customized product specs. No payment info taken anywhere in the app, but basic information is appreciated. Hope i explained it good.
Left side taskbar users unite!! There are literally dozens of us!
Cool! Thank you! Is it possible to add an automatic build to a gitlab or github?
Can you help me in how to fetch the value from 'MDTextField'? The attribute have changed and i can't find a solution.
I can't wait for the next video!!!!!!! That's amazing tutorial. Thanks you. You're awesome. PS: "Everything is Orangeeeeeee!!!!". :8)
i really liked your videos, please more in the future
Thank you Rayan! Definitely will! 😀
@@PythonSimplified can you make a video in the future a live video simple coding?
Hi, why do you not use a KV file for the widgets? Is there an advantage either way? Thank you for the great content!
not using kv language is just simple way for me))
Kindly illustrate how to create a pdf viewer for pdf files in the project folders
That's amazing. I want to have my own App. thank you.
The best!!! Are you from Russia, or СНГ? My English is poor, but I understand you very well! Because you speak very clear)
Great lesson, thank you!
Hello after the last step the android debug, it takes a long time to build into apk like an hour and i canceled it because it takes too long to build, what do you think is the problem?
me trying to pay attention to the tutorial, but getting lost in its beauty
Successfully installed KivyMD and still getting error ModuleNotFoundError: No module named 'kivymd'
(((
TypeError: run() missing 1 required positional argument: 'self'
New desktop computer windows terminal cmd command use to py to convert apk file a to z and others install windows terminal a to z....... Please make a video
I've seen some KivyMD tutorials create a '.kv' file. What's the difference between creating a '.kv' file and doing it this way?
Can you help me please ? I need to make names of columns with arabic language for data tables in kivymd, I tried a lot but failed, How can I do that ?
Hello! How can I put a filter on the input of binary numbers, so that only 1 and 0 can be entered? The program fails with the error ValueError: invalid literal for int()
Can kivymd be used to build a quadratic equation solver
Can you help me to fix "TypeError: 'MDScreen' object is not callable" error
appreciated! thx girl
Great courage....
hi.. you have done amazing work, really appreciable. But I got a problem, when I am using size_hint to get 10% margin on both sides, I am getting whole 20% on right side, can you help me?
Please Make Video on Kivy Builder
very helpful.. thank you
how to make the input field invisible i dont wont to see the line too
how nice it is to look at it)
Idk is it bcos she's a girl or bcoz she's explaining well, but totally falling in love with python.
Thank you for this video, just waiting the next
I like KivyMD and I also like the way you keep it simple, thanks for this video.... but.... who stole DeepGreen ?!? :-D
Do you have a video of how to set up a development environment like you are using, so I can follow your videos?
Absolutely! 😀
Check out my Installing Python with Anaconda tutorial:
ua-cam.com/video/FZ5baopI_mo/v-deo.html
I use Python 3.8 and if you need to install any additional modules - you can find the best installation commands for each package on Anaconda's website.
If you need to install KivyMD, type the following command inside your working environment:
conda install -c conda-forge kivy
Have fun! 😊
@@PythonSimplified Do you use an IDE and if so which one?
@@johntilghman nope,I'm using a simple code editor 😃 it's called Atom, and you can get it for free from: Atom.io
@@PythonSimplified Ah ok, I know about Atom. Would you recommend an IDE or just stick with an editor?
@@johntilghman IDE is always better as it comes with a built-in terminal which saves a bit of time (specially with GUI apps, since we need to re-run them every couple minutes to see the progress).
Also, IDEs are more comftarble when it comes to backend stuff and debugging.
Many people find Pycharm really handy, but I believe most developers work with Visual Studio.
For my videos I try to use software that doesn't require installing special components or adjusting any settings, so that even absolute Python beginners can click on "download" and follow along without any other adjustments 😊
I use Jupyter Notebook for web scraping, Atom for GUI apps and Wayscript/Google Colab for Artificial Intelligence (cloud platforms are usually better then local environments for training, as you can very often boost processing times with CUDA). So it's all mostly a matter of preference and "mix and match" 😁
u write a very beautiful code like u
How can you add the app to a iPhone mobile device?
How much time did it take to learn coding?.
this is so cool! thanks! saluti dall'italia!
You are a great programmer and I am very glad that you have a channel on UA-cam and teach all of us very interesting things. I wish your channel the best of luck and know that you have followers in other countries (e.g. Russia) XD.
Looking forward to the next videos!
Thanks for a great tutorial
Is it possible to incorporate Figma/dribble/Canva UI templates into KivyMD?
Hi, Maria! Thank you for another great video! So, what is the actual package to KivyMD? I installed Kivy into my project, but the starter code you referenced I am receiving many errors in Pycharm spitting our errors that KivyMD is not 'referenced' and 'MDScreen', etc. I'm using PyCharm and python 3.11as the interpreter. I installed Kivy into my project, but I'm unsure if, and what KivyMD package I should install to import if indeed they are not the same? Can you help? Thank you!
At 1:15, she has imported kivymd. This means you will have to "pip install kivymd"
Great content. Thanks!
Thank you Carlos, glad you liked it! 😁
Thanks a lot pretty
You're welcome, enjoy! 😊
hey you WonderGirl!!! Is that possible to do a video with kivyMD with a dropdownmenu beautiful as you are and explain us how deploy one application with multiple pythonfile.....thanks from FRANCE
Please make a video on how to make a study app with python
How would turn a web app into a mobile app?