python类clearcolor()的实例源码

gui.py 文件源码 项目:device-updater 作者: spark 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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()
main.py 文件源码 项目:Tutoriales-Kivy-Espa-ol 作者: IvanDragogear 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def build(self):
        Window.clearcolor = (0, 0, 0, 1.)
theming.py 文件源码 项目:Blogs-Posts-Tutorials 作者: kiok46 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
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'])
theming.py 文件源码 项目:mobileinsight-mobile 作者: mobile-insight 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
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'])
theming.py 文件源码 项目:kivy_gosh 作者: mcroni 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
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'])
theming.py 文件源码 项目:KivyMD 作者: cruor99 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
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'])
main.py 文件源码 项目:AppLogin 作者: KugiHaito 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
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
visual_debugger_app.py 文件源码 项目:SerpentAI 作者: SerpentAI 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)


问题


面经


文章

微信
公众号

扫码关注公众号