I follwed this stackoverflow question, but neither alternatives worked.
This is my code:
from kivy.app import App
from kivy.uix.label import Label
from kivy.core.window import Window
class MyApp(App):
    def build(self):
        return Label(text='text')
if __name__ == '__main__':
    Window.size = (1366, 768)
    MyApp().run()
Sometimes the size works, Kivy creates a screen with size 800x600 then changes it to 1366x768. And sometimes Kivy creates a screen with size 800x600 then changes it to 1366x768, but then back to 800x600.
And if I change my code to:
from kivy.app import App
from kivy.uix.label import Label
from kivy.core.window import Window
from kivy.config import Config
Config.set('graphics', 'width', '200')
Config.set('graphics', 'height', '200')
class MyApp(App):
    def build(self):
        return Label(text='text')
if __name__ == '__main__':
    MyApp().run()
With this code, nothing happens on my screen. I'm using Kivy v1.9.2-dev0. What I should do to fix it?
 
     
     
     
    