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()
python类clearcolor()的实例源码
def build(self):
Window.clearcolor = (0, 0, 0, 1.)
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'])
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'])
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'])
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'])
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
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)