Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

kivy window size

# 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()
 
PREVIOUS NEXT
Tagged: #kivy #window #size
ADD COMMENT
Topic
Name
4+9 =