アプリの背景色を変える

2015/09/12

Python 2.7.9, Kivy 1.9.0

from kivy.core.window import Window
Window.clearcolor = (1, 1, 1, 1)

んー、なんとなくPythonっぽくないけど。

# -*- coding: utf-8 -*-

from kivy.app import App
from kivy.uix.widget import Widget

from kivy.core.window import Window
Window.clearcolor = (1, 1, 1, 1)

class MyWidget(Widget):
    pass

class MyApp(App):

    def build(self):
        return MyWidget()

if __name__ == '__main__':
    MyApp().run()


kivy: change background color to white
http://stackoverflow.com/questions/20872598/kivy-change-background-color-to-white