Kivy Tutorial #3 - Adding Simple Graphics and Labels | Pong Game

preview_player
Показать описание
In this video, we will start creating our Kivy game ( Ping Pong Python). We will start by adding a rectangle and some text to our window.

Next video - Adding the Ball

#python #kivy #pythongui
Рекомендации по теме
Комментарии
Автор

something he doesn't cover: the .kv file has to be all lowercase. that was far too much work to figure out.

nubnubbud
Автор

The .kv file is not being loaded, so for newer kivy versions u might need to load it eg.

def build(self):
Builder.load_file(pong.kv)
return PongGame()

demiz
Автор

Thanks dude, I love how you stop to explain everything

Stevesteacher
Автор

Bro YOU ARE A LIFE SAVER !!! The best tutorial so far on kivy

safwenrejeb
Автор

If you are getting an error when running the code, try replacing:

PongApp().run()

at the end of the file with:

if __name__ == "__main__":
PongApp().run()

Note the double underscores before and after "name" and "main". Youtube comments may format them in weird ways.

burcakakiska
Автор

You stated one thing wrong, the Co-ordinate system in kivy is unusual unlike pygame or other modules it doesnt start at top leftcorner, instead in KIVY, The (0, 0) or the starting index is at the bottom left corner.

guardkaiser
Автор

I am getting syntaxError for :
font_size:70
plzzzz help sir

vamprock
Автор

Sir plz help my .kv file is creating it auto become a txt file but still having.kv extension but not so rectangle in black window plz help

RishabhYadav-zemr
Автор

If we use kv file how can we convert it to APK bulldozer is not accepting two filw

Callofdutymobileu
Автор

my app is not showing rectangle at the middle. it shows black screen although i wrote the full code

howtodo
Автор

Hey dude, love your videos, it´s amazing how you explain very easy.

I have a question, when I run the game with the rectangle and the numbers, appears "kivy files require #:kivy !" and I don´t know what to do, 'cause that doesn't happen before, I could program the rectangle, but now I cannot do anything ):
Please, help.
(I use Visual Studio Code)

CHRLY
Автор

The editor treats my .kv file as a.py file and wants to "correct" it and doesnt automatically indent it like it does with .py files. does anyone know a reason why?

MD-qhld
Автор

why do we write "self" first to refer to window size and later use "root" to refer to window size again? What is the difference?

azatnabiullin
Автор

why I have to name my kv file as pong or as the same name like my class object, is this some naming convention or its compulsory!

bohotsaaridhop
Автор

In pyqt5, i can use qt designer for the design. Isnt there a designer in kivy similar to that?

tolkien
Автор

BEST TUTORIAL OF KIVY, nice work, congratulations

bartolofodac
Автор

For those who are having issues in creating .kv file extension, just write your code in any editor (ex - Notepad) and save it with an extension *All file ---> .kv

sachinfulsunge
Автор

My editor does not recognise the .kv extension

youtubeuser
Автор

Getting error what must I do
AttributeError: 'PongGame' object has no attribute 'centre_x'

weeb
Автор

Sir, unable to create a new file with .kv extension

TheNooBGuitarist