Kivy Tutorial #2 - Creating your first Window | Python GUI

preview_player
Показать описание
In this video, we will create our first Application Window and add Canvas widget to our app. We will be creating the window using 4 a step process -

1) Create the App
2) Create the Game class
3) Build the App
4) Run the App

Next video - Adding Simple Graphics

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

If you have the window error:

In my case I had two Python version (3.8 and 3.7.9) and 3.8 was the "default" version.
You can check your version with >> cmd >> python
The default version is very important for the installation, because it will put all the kivy stuff in the default version.

download the EXE file, run and install it, reopen it and uninstall it.

If you want to set a specific version as default:
go to the same page, install the version u want to install and reopen it, this time pick modify and pick what you want.

So as I already mentioned make sure u only have 1 version of python and set it on PyCharm like this:
File >> Settings >> Project Interpreter >> Add (on the top right) >> New Environment >> Base Intepreter: your python version (in my case: C:\Program

Now install everything through that environment, so just go to that plus icon and install kivy and the kivy.deps stuff, but don't install the ones with the ending "-dev".

If you already installed kivy and everything is a mess, uninstall it like this and then do what I said above:

python -m pip uninstall kivy
python -m pip uninstall kivy.deps.sdl2
python -m pip uninstall kivy.deps.glew
python -m pip uninstall kivy.deps.gstreamer
python -m pip uninstall image

bayram
Автор

Best intro tutorial for Kivy!! Congrats!!

VJ_Abrand
Автор

Bro keep going like that, this series are amazing !!

farukemrepehlivan
Автор

can a kivy data table be printed as a pdf file?

pythonmini
Автор

You are sooo good! You deserve way more viewers! LY(no homo).

jonasstrabel
Автор


i need some help, when i run my code it shows

File "c:/Users/anuj/Desktop/CODE/poopython/kivy/app1.py", line 4, in <module>
class PongGame(Wigdet):
NameError: name 'Wigdet' is not defined

please help

adoctor
Автор

Where is the link you said would be in description?
The class or

Reference -
1:00

jdu
Автор

Traceback (most recent call last):
File "hello.py", line 11, in <module>
PongApp.run()
TypeError: run() missing 1 required positional argument: 'self'

i am using visual studio code.

please help

mukundshukla
Автор

Hi bro as you said I done all but not showing window please help me exit code 0

m.satyasrinivasuraju
Автор

Dude i what all you done but I'm getting error .... AS unable to get a window, abort what I should do reply soon..

thirupammathirupamma
Автор

hello i dont know but this might be a simply doubt
i am not getting the last statement at 5:34
.
[INFO ] [WINDOW ] Provider: sdl2
.
though i have installed the sdl2
pls help me @buildwithpython
or anyone else

bharathjramalingam
Автор

Hi Please help me to solve this I did exactly all the steps you did in the video, thank you:

[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[CRITICAL] [Application ] No window is created. Terminating application run.

gilber
Автор

i getting the error: TypeError: run() missing 1 required positional argument: 'self'

shashankmallick
Автор

Amazing Cannot Express Love For You ❤️ Love the Way of your Talking

shehrry_
Автор

I cant open .kv file made in my pycharm.In the file name it shows a question mark.what is the problem?
can you help me...

mohamedjahimti
Автор

Can we use anaconda jupyter notebook in place of pycharm???

kumkumsharma
Автор

Getting this error:
Traceback (most recent call last):
File "C:/Users/anjol/AppData/Roaming/JetBrains/PyCharmCE2020.1/scratches/kivy.py", line 1, in <module>
from kivy.app import App
File "C:\Users\anjol\AppData\Roaming\JetBrains\PyCharmCE2020.1\scratches\kivy.py", line 1, in <module>
from kivy.app import App
ModuleNotFoundError: No module named 'kivy.app'; 'kivy' is not a package



PLEASE HELP!!

anjolaadesina
Автор

I am Getting this error:
Traceback (most recent call last):
File "C:/Users/Admin/PycharmProjects/kivy/PONG/game.py", line 1, in <module>
from kivy.app import App

dharmikmaru
Автор

I have this problem can anyone help me

File "C:\Users\Abdikhani\PycharmProjects\Kivy-Projects\Kivy-Pro-One\kivy.py", line 1, in <module>
from kivy.app import App
ModuleNotFoundError: No module named 'kivy.app'; 'kivy' is not a package

abdikhanihassan
Автор

I'm working on linux and my inbuild python package version is 3.8 how can i use kivy with that

பி.அம்ரித