Kivy with Python tutorial Part 2 - Widgets and Labels

preview_player
Показать описание
In this Kivy application development tutorial, we cover widgets and labels, as well as diving into some of the extensive Kivy documentation.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

I have been struggling with getting kivy installed and working properly on windows for like 3 days now, you are an absolute life saver you're awesome thank you! hope i'll be able to continue your series

yasmineguemouria
Автор

hi thanks for tutorial u explain so better than the tutors in udemy

mandeep
Автор

cannot focus input text.  _touch_wndProc error occurs when dragging app. respond pls

Dyynfinity
Автор

Hey sentdex, Thanks for taking the time to make great videos. Do you happen to have experience or know of any videos that would show the practical integration of Python and Kivy with SQL tables... or tables/views hosted in Azure?

tcbournezsn
Автор

got the basic layout output. But didnt get the text box in the output. only black screen is appearing. please help.

tamilfactss
Автор

Someone can explain me the use of "super", I don't get it

usuman
Автор

@Sentdex - Does Kivy allow html elements as layout views? It's often intuitive for developers to design using html + css while programing the UI with Python and exporting with Kivy ( if thats possible or program UI with javascript ). I really would like better understanding of how to build a Slack app type UI. Thanks for the video

mrmagnetic
Автор

hey sentdex, can you help me? when I press ctrl + c to copy from de text field in the kivy window, I get this message:

[INFO ] [Clipboard ] Provider: ignored)

do you know how to fix this? thanks a lot

AdolphoPiazza
Автор

Why doesn't SimpleKivy() class have any __init__() method?

saminchowdhury
Автор

How do you put the input from TextInputs in a variable?

laurenzv
Автор

do i need to hav all knowledged of pygame (on ur channel) for this??

prashant.singh.
Автор

can i use this platform to build andriod applicaion, ,hope to answer

yazanjenin
Автор

how can I change the shape of a button. say I wanted a round button. how?

BeYakko
Автор

Hi
Thanks for this Tutorial. What kind of Editor do you use?

ciaobello
Автор

I'm not sure if this is a problem but I have an error that pops up even though my app runs fine.

The error is:

[ERROR ] [WinPygame ] unable to set icon
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/kivy/core/window/window_pygame.py", line 215, in set_icon

File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/kivy/core/window/window_pygame.py", line 227, in _set_icon_standard
im = pygame.image.load(filename)
pygame.error: Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

How do I fix this?

KimHyungJuniamboss
Автор

Your tutorials are really helpful, thank you. I'm kind of stuck with my indents though! I found myself having to put all my functions and classes under 'Widgets(widget)', otherwise the 'on_press' in my .kv complained that Widgets didn't hold the function, even when I use root. So I'm missing the point somewhere...?

thecatman
Автор

the code from the video

from kivy.app import App
#kivy.require("1.8.0")
#was commented out and not required, but sets a version.
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.textinput import TextInput

class LoginScreen(GridLayout):
def __init__(self, **kwargs):
super(LoginScreen, self).__init__(**kwargs)
self.cols = 2


self.username = TextInput(multiline=False)



self.password = TextInput(multiline=False, password=True)



self.tfa = TextInput(multiline=False)
self.add_widget(self.tfa)

class SimpleKivy(App):
def build(self):
return LoginScreen()

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

sawyer
Автор

Can you kindly explain why you used __init__ for class Loginscreen but not for class SimpleKivy??

Oreotrader
Автор

Hey Sentdex! I am running ubuntu 14.04. I think the code is working but I do not get the window that allows user input... just the python shell that prints info. Please help!

devonkaahanui
Автор

Is this a substitute to Tkinter or are they both used for different purposes?

thekjpacino