Mobile App with KivyMD - Python GUI for Android - Binary to Decimal Converter

Mobile App with KivyMD - Python GUI for Android - Binary to Decimal Converter

Python Simplified

2 года назад

85,298 Просмотров

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 🥝:
https://youtu.be/2aRBkAA1_9o

🥝 PART 3 - Convert Python App to Android .apk 🥝
https://youtu.be/VsTaM057rdc

You also might find these tutorials helpful:

My Binary to Decimal Math Tutorial:
https://youtu.be/4IFq7_s9NEA

My Python Classes & Objects Tutorial:
https://youtu.be/f0TrMH9s-VE

⭐ 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:
https://github.com/MariyaSha/BinarytoDecimal

All available KivyMD icons:
https://kivymd.readthedocs.io/en/latest/themes/icon-definitions/index.html

Thank you so much for watching! 🤩

Beautiful Kiwis in the background are from:
freepik.com

Тэги:

#gui #python_gui #python_ui #ui #ui_app #gui_app #kivy #KivyMD #KivyMD_tutorial #python_programming #python_tutorial #binary_to_decimal #python_binary_to_decimal #python_int #python_bin #number_base_converter #KivyMD_app #python_mobile_app #mobile_app #mobile_ui #mobile_gui #android_python_app #android_KivyMD #android_kivy #mobile_kivy #mobile_app_tutorial #create_mobile_app #python_android_app #python_program #kivy_md #user_interface #ui_widgets #graphic_user_interface
Ссылки и html тэги не поддерживаются


Комментарии:

Maram Nada
Maram Nada - 07.09.2023 13:21

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

Ответить
NAHOM9191
NAHOM9191 - 20.07.2023 11:54

get her a vodka

Ответить
imanah christopher
imanah christopher - 11.07.2023 08:08

Can kivymd be used to build a quadratic equation solver

Ответить
Ahmed Morgan
Ahmed Morgan - 28.06.2023 13:30

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 ?

Ответить
Nysze
Nysze - 09.06.2023 23:04

Left side taskbar users unite!! There are literally dozens of us!

Ответить
THEODOROPOULOS DIMITRIS
THEODOROPOULOS DIMITRIS - 30.05.2023 07:10

you need to update because :
ImportError: cannot import name 'MDToolbar' from 'kivymd.uix.toolbar'

Ответить
Ahad haque
Ahad haque - 22.03.2023 12:58

for those that getting the error that is "Kivy is too old, it requires kive --version 2.2.0 (Which they hasnt released yet. Latest version of kivy as until now is 2.1.0)" can ctrl+click on kivyMD, and you will find in like 34th line there's "kivy.require("2.2.0")". Change this into "kivy.require("2.1.0")" and your problem should be fixed. Thank you.

Ответить
Nicola La Caprara
Nicola La Caprara - 01.02.2023 14:17

For me you are very smart and really extremely sexy😍 wish to meet you🙏

Ответить
LMI GAMING
LMI GAMING - 26.01.2023 21:38

I want to eat a kiwi (no, really)

Ответить
Carlos Sojo
Carlos Sojo - 04.01.2023 17:37

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?

Ответить
KCSEFORECAST
KCSEFORECAST - 14.12.2022 14:32

Kindly illustrate how to create a pdf viewer for pdf files in the project folders

Ответить
Vlad Imir
Vlad Imir - 27.11.2022 14:15

I love you)

Ответить
Hazina Prosper
Hazina Prosper - 17.11.2022 19:23

You are a good teacher. congratulations we are learning through you.

Ответить
Emy Emil
Emy Emil - 08.11.2022 09:55

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

Ответить
Haroun GotSKillz
Haroun GotSKillz - 01.11.2022 21:25

damn sexy and smart

Ответить
Adrian Dubaniewicz
Adrian Dubaniewicz - 30.10.2022 20:27

If someone have problems with self.toolbar = MDToolbar..., you need to change MDToolbar to MDTopAppBar :)

Ответить
fnuker
fnuker - 20.08.2022 23:28

Hello Mariya Thanks for tutorials :) got this error: ImportError: cannot import name 'MDToolbar' from 'kivymd.uix.toolbar'. Dou you have some tips please? thx ;)

Ответить
EGY CG
EGY CG - 18.08.2022 11:11

You're gorgeous 😉

Ответить
Sundar
Sundar - 05.08.2022 16:56

Can you help me to fix "TypeError: 'MDScreen' object is not callable" error

Ответить
LearnersClasses
LearnersClasses - 28.07.2022 11:41

great👍

Ответить
@lucasfintwit
@lucasfintwit - 14.07.2022 18:06

Great lesson, thank you!

Ответить
Mujtaba
Mujtaba - 05.07.2022 18:25

How much time did it take to learn coding?.

Ответить
Peter Wright
Peter Wright - 21.06.2022 23:34

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.

Ответить
Redscarf
Redscarf - 17.06.2022 06:47

I've seen some KivyMD tutorials create a '.kv' file. What's the difference between creating a '.kv' file and doing it this way?

Ответить
vvs
vvs - 07.06.2022 23:55

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! 👍

Ответить
AtlanticLove
AtlanticLove - 02.06.2022 06:25

If you want to call it an app, then make it does something useful, and read/write data.

Ответить
Brett Peace
Brett Peace - 28.05.2022 19:41

Did I miss the part where your sample app ran on an actual Android device?

Ответить
Hajro BM
Hajro BM - 16.05.2022 11:27

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!

Ответить
El Profesor Verdad
El Profesor Verdad - 13.05.2022 04:08

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.🙂

Ответить
John Paul Nofuente
John Paul Nofuente - 08.04.2022 14:47

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?

Ответить
Danilon 22
Danilon 22 - 03.04.2022 01:18

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()

Ответить
Danilon 22
Danilon 22 - 31.03.2022 19:58

Successfully installed KivyMD and still getting error ModuleNotFoundError: No module named 'kivymd'
(((

Ответить
Serhii Hrechka
Serhii Hrechka - 20.03.2022 14:52

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.

Ответить
Babu
Babu - 11.03.2022 10:52

Ur from?

Ответить
lasantra domains
lasantra domains - 07.03.2022 14:37

Thank you madam for this lesson! <3

Ответить
Hemanth Reddy
Hemanth Reddy - 13.02.2022 20:10

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 :))

Ответить
Pipe Pi
Pipe Pi - 02.02.2022 06:28

I am in love... And always shall be...

Ответить
Shafagh Spider
Shafagh Spider - 26.01.2022 20:49

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.

Ответить
euLeozera
euLeozera - 26.01.2022 02:19

Send more videos about KivyMD, please. I'm from Brazil and your videos have helped me a lot

Ответить
Andre Perras
Andre Perras - 23.01.2022 12:23

Your tutorials are amazing. Subscribed. Thank you

Ответить
Allex Khan
Allex Khan - 11.01.2022 21:03

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

Ответить
Charles Collins
Charles Collins - 11.01.2022 21:00

Excellent presentation!!!

Ответить
Allex Khan
Allex Khan - 11.01.2022 21:00

Windows 11 to, py to convert apk file windows terminal , please make a video

Ответить
Jay Dee
Jay Dee - 11.01.2022 18:21

Just finished this part one. Thank you for your time and effort.

Ответить
KARTHIK R
KARTHIK R - 07.01.2022 11:23

Hii MARIYA, Nice explain and what is data science? explain clearly

Ответить
Artur
Artur - 31.12.2021 19:40

Label, label ☺️😂

Ответить
programmer_k
programmer_k - 18.12.2021 13:51

Can you teach us Behaviors on kivy please please 🥺🥺🥺

Ответить
sphere digital
sphere digital - 18.12.2021 06:53

Beauty and Brain

Ответить
Kinios Kowalski
Kinios Kowalski - 05.12.2021 09:20

TypeError: run() missing 1 required positional argument: 'self'

Ответить