Тёмный

Kivy crash course 10: Thinking about layouts 

Alexander Taylor
Подписаться 6 тыс.
Просмотров 39 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@FreePythonTutorials
@FreePythonTutorials 10 лет назад
Thanks again for a very helpful video. I am very excited to watch the Clock and Animation one!!
@stevenkyalo
@stevenkyalo 9 лет назад
if width_per_child = width / number_of_children brings a float error in positions = range(0, width, width_per_child), use : width_per_child = int(width / number_of_children)
@hadse1234
@hadse1234 4 года назад
Thanks mate
@abhijaybharathan4308
@abhijaybharathan4308 4 года назад
but then it wouldn't fit perfectly right?
@Fede-ev5fj
@Fede-ev5fj 16 часов назад
thank you very much, stranger from 9 years ago!
@MagicalCreationAviCreation
@MagicalCreationAviCreation 4 года назад
SIR if i want to merge two column as single column in gridlayout then what code i need to change.......
@euskamilla
@euskamilla 6 лет назад
Thank's a lot width_per_child = int( width / number_of_children)
@commonsence5746
@commonsence5746 8 лет назад
I am very new to programming. This may be a stupid question but here it is. Where do I put the colours.png file? Is there a a default location for the source? How does the widget know where to look for the source? How would I define where to load a file/image from? I have been able to follow along through all tutorials until this one. Please help. Thanks
@NithishNarasimman
@NithishNarasimman 7 лет назад
you can put it in the folder of the program
@magdalennorland4012
@magdalennorland4012 6 лет назад
Putting the image in the folder didn't work for me, did you ever figure out how to get the image to load?
@StasSave
@StasSave 5 лет назад
Why if instead of importing builder and writing kvland in python, if I write it in a kv file it doesnt work...?
@kosiit
@kosiit 10 лет назад
Hi, actually i needed to cast my width_per_child to an Integer for the range thing. Not sure if that is Python specific (i am on 3.3), environment specific (Win7+PyCharm), or if you just have a screent resulution % 6 . Maybe that will help out others. Anyways, thanks for the good work
@spacemooseprime
@spacemooseprime Год назад
These examples are all done in python 2.x, while most people now use python 3.x. This means there are occasional adjustments needed.
@abhijaybharathan4308
@abhijaybharathan4308 4 года назад
I don't understand how the functions of the RootWideget() class work even though they are not being called. Could someone please explain.
@huntermetzger4382
@huntermetzger4382 4 месяца назад
It looks the the RunTouchApp(RootWidget) makes the widget appear. I am sure it's still a burning question 4 years later
@stephanieskinner4180
@stephanieskinner4180 6 лет назад
really struggling with understanding what some of this means from lack of base knowledge such as 'self' and '_innit_' etc. but how tould i add buttons onto my background??
@JustAn0therSoul
@JustAn0therSoul 5 лет назад
well if you define a function in a class it always uses the self attribute, as the class is called from an "instance" the instance bascilly becomes "self" example: class Human: eyes = 2 stephanie = Human() #stephanie is the instance here now you could do print("stephanie.eyes") further more, functions are only execute when called, except the __init__ function, it is called upon creating an instance class Human: __init___(self, name): self.name = name steph = Human("Stephanie") # creates an instance that calls the init functions the "self" basiclly becomes steph for this instance so you can call steph.name Just in case you still dont know , maybe others wondered the same and find this helpful :)
@Geza_Molnar_
@Geza_Molnar_ 4 года назад
@@JustAn0therSoul The shortest object oriented course ever ;-)
@alexandthunder4975
@alexandthunder4975 7 лет назад
width_per_child = width / number_of_children This is giving me a division by Zero Error (maybe because the children don't exist yet?) Tried Kyalo's solution below but that isn't it.
@abhijaybharathan4308
@abhijaybharathan4308 4 года назад
what functio is on_pos()??
@bytestormbr
@bytestormbr 10 лет назад
First comment! ^_^ Kivy r0ckz!
@wlad163163
@wlad163163 3 года назад
width_per_child = width // number_of_children works fine, half- or third-pixel doesn't matter)
@isabeln.93
@isabeln.93 5 лет назад
what's the zip( ) for?
@cristian-bull
@cristian-bull 6 лет назад
This man speaks and types so fast. Everything he does is done fast. He is just like QuickSilver .__.
@ukaszmaek6871
@ukaszmaek6871 7 лет назад
Did you ever considered speaking slowly so every1 can understand you?
@luvsingh8791
@luvsingh8791 7 лет назад
you can slow down the speed, using youtube settings to 90% or 80% at a speed you are comfortable.
@ukaszmaek6871
@ukaszmaek6871 7 лет назад
Luv Singh holy crap, thnx mate i didnt know that and it helps a lot :D
@ChoudryArif
@ChoudryArif 6 лет назад
and can also turn on subtitles
Далее
Kivy crash course 11: Animation and the Clock
9:06
Просмотров 39 тыс.
Kivy crash course 14: Using a ScreenManager
11:51
Просмотров 51 тыс.
Voy shetga man aralashay | Million jamoasi
00:56
Просмотров 211 тыс.
Kivy crash course 13: Using Kivy's settings panel
12:02
Kivy crash course 4: Kivy language
9:46
Просмотров 78 тыс.
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 74 тыс.
Kivy crash course 5: Mixing python and kivy language
8:47
Kivy crash course 9: Creating a scrollable label
11:50
Writing Code That Runs FAST on a GPU
15:32
Просмотров 564 тыс.
How to Vim in 2023: Tips and Tricks
15:53
Просмотров 430 тыс.
Kivy: Building GUI and Mobile apps with Python
28:32
Просмотров 61 тыс.