Киви не показывает окно - PullRequest

Ответы [ 2 ]

1 голос
/ 05 августа 2020

@ zidanhadipratama

Ответ на ваш комментарий,

# The Other Imports
import kivy
kivy.require('1.10.1')
from kivy.app import App
from kivy.uix.label import Label

# Make Sure This Is Always the last import
from kivy import Config
Config.set('graphics', 'multisamples', '0')


# Main Code
class MyApp(App):
    def build(self):
        return Label(text="Hello, World!")


# Run This Thing
if __name__ == "__main__":
    MyApp().run()
1 голос
/ 04 августа 2020

Это решение может помочь вам на OS OS X или Win

#qpy:kivy
import kivy
kivy.require('1.10.1') # **REPLACE WITH CURRENT KIVY VERSION** To Get Rid Of This error--> [CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes


from kivy import Config
Config.set('graphics', 'multisamples', '0') # **To Get Rid Of The Open GL 2.0 Error**
...