: Hi guys , good time . i have a problem in python_kivy . can anyone help me? I think remove this error is simple work! but i don't know why i have this error.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/9eb677dc-3676-4ba4-97d3-ca93fdb910d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think you should not import "Label" from "kivy.uix.button". And I'm sure that you need to import it like this:
from kivy.uix.label import Label
According to docs, "kivy.uix.label" is one of the bases of "from kivy.uix.button". But this doesn't mean that one could import label from button.
However, it's probably ok to do:
from kivy.uix import *
but then, you must use:
label.Label
button.Button
instead of Lable and Button.
Regards,
Ali.
anyways, I think this should solve the problem:
import os
os.environ['KIVY_GL_BACKEND'] = 'sdl2'
from kivy.core.window import Window
put it in your .py file, befor any "import" that is related to kivy.
https://github.com/kivy/kivy/issues/5348
Please let us know if this solve your problem :-)
Regards,
Ali.
Please upgrade opengl & reinstall kivy. Here is 3 links to download different graphic drivers for MS Windows:
https://www.khronos.org/opengl/wiki/Getting_Started#Windows
Since you live in Iran like me, consider using a vpn service or changing your IP address if you are planning to download the drivers. Some brands have restricted our access due to the international sanctins.
excuese me sir Dilshad khan , but i do not have this code (Hellowapp)!!!
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/96dfb21c-d068-4d06-845d-e9887d727354%40googlegroups.com.