# This is an executable sample but related lines are #1 and #2
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.core.window import Window #1
Window.size = (1200, 600) #2
class MyLayout(Widget):
pass
class MyApp(App):
def build(self):
return MyLayout()
if __name__ == '__main__':
MyApp().run()
from kivy.config import Config
Config.set('graphics', 'width', '200') # sets width to 200px
Config.set('graphics', 'height', '200') # sets height to 200px
import kivy
kivy.require('1.9.0')
from kivy.config import Config
Config.set('graphics', 'width', '200')
Config.set('graphics', 'height', '200')