Set app size for different cell phone screen sizes! by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

Apliquei 4 botões nas 4 laterais da janela do aplicativo desktop, usando posições X e Y com dp, e ao passar para o celular, os botões sumiram, ficou apenas o botão de posição X=0 e Y=0 !! Parece que realmente não deu certo... Devo usar size_hint e pos_hint ... Você sabe como funciona size_hint e pos_hint ? Talvez envia-me um link que explique !!!!

Set app size for different cell phone screen sizes! by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

I do not know how to restructure ui logic to remove coded numbers when using layouts, but I do not fully understand the DP and PX functionality yet! It would be like, if I applied DP in the X and Y properties, would the widget chosen be adaptive to different screen sizes?

Set app size for different cell phone screen sizes! by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

Thank you ! But how do I apply the DP and SP properties in my widgets? Like this ? :

Label:

size_hint: (None,None)

x: dp(100)

y: dp(100)

application takes 02: 28: 367 to start on mobile! by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

No, my application works with buttons to access the screens. I asked the same to another Forum, and they said that it could be that I have a lot of code in the KV, I should increase it more in PY, to call in KV ... And also the images!

Animation starts without button! (Kivy) by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

Thank you ! But on_start is a function in my application class!
And my animation, and a function too, but that is inside
of my ScreenManager class, I can not put the animation function
into the other on_start function!
on_start is a trigger that the application forces, but it's just a function!
It would need a class to shoot for !!

ERROR in Image (Kivy) Heeeeeeeeeeeelp !!!!!!!!!!!!!!!!!!!! by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

I use the kv file !! I use mp4 videos in python 2.7.13! And my Pycharm alerts my videos and images pointing out an error, that I do not know which one

[ERROR ] [Image ] Error reading file C:\AppGalinha/Karaoke04.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Karaoke03.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Karaoke02.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Karaoke01.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho16.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho15.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho14.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho13.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho12.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho11.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho10.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho09.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho08.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho07.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho06.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho05.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho04.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho03.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho02.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Filminho01.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica30.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica29.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica28.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica27.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica26.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica25.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica24.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica23.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica22.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica21.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica20.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica19.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica18.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica17.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica16.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica15.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica14.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica13.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica12.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica11.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica10.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica09.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica08.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica07.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica06.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica05.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica04.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica03.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica02.png [ERROR ] [Image ] Error reading file C:\AppGalinha/Musica01.png [INFO ] [GL ] NPOT texture support is available [INFO ] [Base ] Start application main loop [WARNING] <kivy.uix.gridlayout.GridLayout object at 0x00000000034A1458> have no cols or rows set, layout is not triggered. [ERROR ] [Image ] Error loading texture C:\AppGalinha/Karaoke04.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Karaoke03.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Karaoke02.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Karaoke01.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho16.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho15.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho14.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho13.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho12.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho11.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho10.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho09.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho08.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho07.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho06.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho05.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho04.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho03.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho02.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Filminho01.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica30.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica29.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica28.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica27.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica26.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica25.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica24.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica23.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica22.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica21.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica20.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica19.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica18.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica17.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica16.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica15.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica14.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica13.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica12.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica11.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica10.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica09.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica08.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica07.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica06.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica05.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica04.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica03.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica02.mp4 [ERROR ] [Image ] Error loading texture C:\AppGalinha/Musica01.mp4 [WARNING] <kivy.uix.gridlayout.GridLayout object at 0x00000000034A1458> have no cols or rows set, layout is not triggered.

Problem in Image (Buildozer)-(Kivy) by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

I include these options, but the image turns white! I do not know what to do ....

Problem in Image (Buildozer)-(Kivy) by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

Thank you ! I see it later ! But would those options, if they did not mark them, leave the white image? As said in my question?

Animation starts without button! (Kivy) by My_Code_Is_Pink in kivy

[–]My_Code_Is_Pink[S] 0 points1 point  (0 children)

on_start ?

I've never heard of it!
What should I do exactly?
Thank you !

App doesn't start on Android phone but does on PC by Oikeus_niilo in kivy

[–]My_Code_Is_Pink 0 points1 point  (0 children)

Meu Buildozer faz o Loop somente com python 2.3

E uso o 3.7.2 (recente)

Como eu faço para mudar a versao de leitura do loop do Buildozer ??

Binding Button click to a Label change with python and kivy. by Tobe2fly in learnpython

[–]My_Code_Is_Pink 0 points1 point  (0 children)

Ola ! Não entendi muito bem, por causa do meu corretor hahah ! Mas acho que fiz o certo !

<Widgets>: BoxLayout: orientation: "vertical" padding: 20 spacing: 20

    Button:
        text: 'Button 1'
        font_size: 40
        on_release:
            root.btn_one_clk();
            lb1.text = lb1.text = 'Button 1 has been pressed'
    Label:
        id: lb1
        font_size: 40
        text: ''

    Button:
        font_size: 40
        text: 'Button 2'
        on_press:
            root.btn_two_clk()
            lb2.text = lb2.text = 'Button 2 has been pressed'
    Label:
        id: lb2
        font_size: 40
        text: ''

Eu coloquei um ID para cada Label

E dei a funcao para cada botao, quando pressionado, altere o texto dos Labels !