Тёмный

kivy variables between classes or screens 

Tirrou Oussama
Подписаться 208
Просмотров 4,5 тыс.
50% 1

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

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@13sina13
@13sina13 Год назад
help me a lot thanks😍
@EhimenIria
@EhimenIria 9 месяцев назад
thanks it is a great video, please can you do a tutorial on how to access a variable from another class in kivy
@Pythoneer-
@Pythoneer- 9 месяцев назад
😅 this is the video
@EhimenIria
@EhimenIria 9 месяцев назад
@@Pythoneer- okay let me try
@VascoCC95
@VascoCC95 2 года назад
The function to change screens is not working for me. It says theapp has no attribute screenm...
@Pythoneer-
@Pythoneer- 2 года назад
Yes it has see if have modified something.
@VascoCC95
@VascoCC95 2 года назад
@@Pythoneer- I had deleted something by accident. It now works fine!
@frettmann5317
@frettmann5317 Год назад
Thank u 😊
@davidfa7363
@davidfa7363 2 года назад
Using this solutions how can i change the screen transition?
@Pythoneer-
@Pythoneer- 2 года назад
put this in the app class self.screenm = ScreenManager(transition=FadeTransition()) instead of this self.screenm = ScreenManager() and make sure to import from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
@Pythoneer-
@Pythoneer- 2 года назад
u can check other transitions in the doc this one is for a fading screen
@karimsantoro4326
@karimsantoro4326 2 года назад
Doesn t work for me.. it says that myapp has no attribute schermo2
@Pythoneer-
@Pythoneer- 2 года назад
The code as it is works fine, check if u have added something, i have no attribute schermo2
@karimsantoro4326
@karimsantoro4326 2 года назад
@@Pythoneer- you re right! Your code works perfectly. The problem is mine because when I try to use a similar syntax for reach a variable from a screen to another,screenmanager said “none type has not etc”. Now I have resolved with the instantiation of the various screens object. Thanks for your time and your share 🏆
@Pythoneer-
@Pythoneer- 2 года назад
@@karimsantoro4326 my pleasure bro ❤. Keep it up
@carloscampos7709
@carloscampos7709 Год назад
Thank you!!!
@skroyeducation2166
@skroyeducation2166 2 года назад
How to define variable in kV file plz rpl
@Pythoneer-
@Pythoneer- 2 года назад
Use this at the top of the kv file #:set name value And whenever u want to use it again just use that name. There is also Numericproperty and Stringproperty u can check the doc its straightforward
@skroyeducation2166
@skroyeducation2166 2 года назад
@@Pythoneer- can you give an example
@skroyeducation2166
@skroyeducation2166 2 года назад
And can I use list element to assign variable
@Pythoneer-
@Pythoneer- 2 года назад
#:set fnt_size 20 Label: text 'example' font_size: fnt_size if u want to use a list u have to use python to read from it then pass it by id or by string or numeric property there is also listproperty. Ps its easier to read the doc u will find everything u need
@skroyeducation2166
@skroyeducation2166 2 года назад
@@Pythoneer- what meant by numeric and list property
Далее
Kivy Tutorial #9 - Navigation Between Multiple Screens
10:04
Kivy and Threads
7:31
Просмотров 1 тыс.
KivyMD Tutorial - Shopee Redesign App
31:40
Просмотров 7 тыс.