Intro to Kivy, Python's Universal App Builder Software! Apps for iOS, Android, Linux, Mac, and PC!!

LeMaster Tech
183 followers
172 Video Views·Apr 23, 2025
Learn to develop universally compatible apps using Python and Kivy!! This is episode 1 in an intro to Kivy series from LeMaster Tech. This episode covers creating code to run your first app in Kivy! This shows the basics of importing Kivy, and creating your first Hello World app!
Be sure to check out our channel for tons of additional python tutorials and practice problems and be sure to like and subscribe if you find our content useful!!
https://www.youtube.com/channel/UCV5Ab39YnXvTZ6Grar9URxQ
If you want to see anything specific on the channel or have technical questions about anything leave a comment on our of our videos and we will get back as soon as we can!
Thanks for watching and supporting the channel!
hello welcome back to the channel
today's video is going to be episode one
in a kivi tutorial series with python
and essentially what kibi is if you're
unfamiliar is an app building software
uh that uses python as the driving code
and then it has kind of a unique ki
design language
and
it it lets you create apps that can be
run on any
on any operating system so
mac
pc
linux the android and the mobile ios
app stores can both support kibby
programs so you really can create a
universal
uh app just by learning kivi so that's
pretty cool we'll dive right into it if
you have any specific questions about
what it is or why to use it go ahead and
let me know about in the comments i'll
get back to you as soon as i can
so to get started with it we're just
going to import kibi that's kind of uh
you import the module anytime you need a
module this is pretty standard if you've
seen this channel's
pi game tutorial series you always just
have to start with importing it if you
don't have it on your computer already
you will need to run pip to install it
there are a million videos out there on
on using pip so i'm not gonna go into it
on this one
but uh so for this first video we're
just gonna try to get a running app
something that displays some text on the
screen
so from
kivy.app import app and now what we're
doing is we're actually importing
specific functionality from the kibi
package
and then from kibi
uix is their code for user interface
it's just some shorthand specific to
kibby
and then
import
label and this syntax is going to be
fairly standard from
whatever you're importing and it'll all
be lower case but then the actual thing
you're going to be importing is going to
have a first letter capital that's
pretty normal for kibi
so let's go ahead and define our app
here we'll say class my app
and that is going to be
app
and what do we want to do well this is
just kind of the getting started with
video so let's just go ahead and return
a label where the text
says
hello world
and this text equals inside of the uh
inside of the label function
this is
why is it not like this
oh that's right we gotta
so within the app we have to
actually build it
um
we have to actually build the app before
we can pass anything in so then we'll
put the label inside of it
the build function is part of kibi's app
uh
app package where it's just saying at
this point you're actually um putting
things into the app underneath this
build function and so that's where you
put the hello world and then a little
bit of kivi specific
syntax that we're going to need
is if
name
equals
main
and this is going to become a little bit
more useful and we'll understand kind of
why you have to do things this way
once we've gotten into multiple screens
and adding widgets onto the screens and
buttons and and kind of text inputs and
things like that
but for now if you just know this is
kind of the
required syntax you need to get your app
running and there's a lot of different
ways that you can do this but this is
sort of the most basic way to just have
a viable app so that you can do some
testing if your name equals main because
that's going to be the primary screen it
loads to within the app
then run the app and so
if you saw the pie game series this is
kind of similar to creating your game
like while running game loop and then
putting in some conditions for exiting
the game loop um this is just kibi's
format of that but what we'll see if we
run this on episode one
okay we get an app in the default uh
just this is the default window and it
says hello world on screen so uh one
real nice feature about kivy you can see
right here the standard is it is easily
resizable and all of your widgets
anything you draw onto the screen unless
you define a size and lock it in place
it's going to scale
with the
resizing of the screen this is kind of
how it makes it easily transferable from
one software to another
so there you go uh five minutes we have
a running kibi app and we can start uh
sticking stuff in here texts labels
pictures anything we want and we'll get
into that in the next few series so
hopefully you found this useful uh i'll
try to keep cranking these videos out
daily and if you have anything specific
you want to see on the channel feel free
to let me know in the comments and if
you found this or anything else useful i
really appreciate the like and the
subscribe on the video it really helps
channel out a lot and as always good
luck with your code and thanks for
watching thanks bye
