Easiest i can think of:
from kivy.graphics import Color, Rectangle
class AppUI(App):
def build(self):
self.root = get_main_window()
with self.root.canvas:
Color(rgba=(.5, .5, .5))
Rectangle(size=self.root.size, pos=self.root.pos)
return self.root
Should work (untested, i'm on phone)
--
Easiest i can think of:
from kivy.graphics import Color, Rectangle
class AppUI(App):with self.root.canvas:
def build(self):
self.root = get_main_window()
Color(rgba=(.5, .5, .5))
Rectangle(size=self.root.size, pos=self.root.pos)
return self.root
Should work (untested, i'm on phone)
Le 15 sept. 2012 06:48, "timger timger" <yishen...@gmail.com> a écrit :i create a kivy appbut always the app's background is blackhow to change the app's background
class AppUI(App):def build(self):self.root = get_main_window()return self.rootget_mian_window return a FloatLayout object,--
--