Python kivy.core.window.Window 模块,clearcolor() 实例源码

我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用kivy.core.window.Window.clearcolor()

项目:device-updater    作者:spark    | 项目源码 | 文件源码
def build(self):
        Window.clearcolor = (1, 1, 1, 1)
        self.title = "Particle Device Updater"
        self.icon = "resources/particle.png"
        self.thread = threading.current_thread()
        return ConnectedDevice()
项目:Tutoriales-Kivy-Espa-ol    作者:IvanDragogear    | 项目源码 | 文件源码
def build(self):
        Window.clearcolor = (0, 0, 0, 1.)
项目:Blogs-Posts-Tutorials    作者:kiok46    | 项目源码 | 文件源码
def set_clearcolor_by_theme_style(self, theme_style):
        if theme_style == 'Light':
            Window.clearcolor = get_color_from_hex(
                colors['Light']['Background'])
        elif theme_style == 'Dark':
            Window.clearcolor = get_color_from_hex(
                colors['Dark']['Background'])
项目:mobileinsight-mobile    作者:mobile-insight    | 项目源码 | 文件源码
def set_clearcolor_by_theme_style(self, theme_style):
        if theme_style == 'Light':
            Window.clearcolor = get_color_from_hex(
                colors['Light']['Background'])
        elif theme_style == 'Dark':
            Window.clearcolor = get_color_from_hex(
                colors['Dark']['Background'])
项目:kivy_gosh    作者:mcroni    | 项目源码 | 文件源码
def set_clearcolor_by_theme_style(self, theme_style):
        if theme_style == 'Light':
            Window.clearcolor = get_color_from_hex(
                colors['Light']['Background'])
        elif theme_style == 'Dark':
            Window.clearcolor = get_color_from_hex(
                colors['Dark']['Background'])
项目:KivyMD    作者:cruor99    | 项目源码 | 文件源码
def set_clearcolor_by_theme_style(self, theme_style):
        if theme_style == 'Light':
            Window.clearcolor = get_color_from_hex(
                colors['Light']['Background'])
        elif theme_style == 'Dark':
            Window.clearcolor = get_color_from_hex(
                colors['Dark']['Background'])
项目:AppLogin    作者:KugiHaito    | 项目源码 | 文件源码
def build(self):
        self.icon = 'img/icon.ico'
        # Window Settings
        Window.fullscreen = False
        Window.size = (820, 580)
        Window.clearcolor = (.6,.6,.6,.4)
        return sm
项目:SerpentAI    作者:SerpentAI    | 项目源码 | 文件源码
def __init__(self):
        super().__init__()

        self.images = dict()

        self.root = FloatLayout(size=(Window.width, Window.height))
        self.grid = GridLayout(cols=8)

        self.add_widget(self.root)
        self.root.add_widget(self.grid)

        for i, bucket in enumerate(config["visual_debugger"]["available_buckets"]):
            layout = BoxLayout(orientation="vertical")

            image = VisualDebuggerImage(
                allow_stretch=True
            )

            image.bind(texture=image.update_texture_filters)

            self.images[bucket] = image

            layout.add_widget(image)

            label = Label(
                text=bucket,
                color=(1, 1, 1, 1),
                size_hint=(1, 0.1)
            )

            layout.add_widget(label)

            self.grid.add_widget(layout)

        Window.bind(on_resize=self.on_window_resize)
        Window.clearcolor = (0.136, 0.191, 0.25, 1)