MCPcopy
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / ToolButton

Class ToolButton

modules/ui_components.py:12–20  ·  view source on GitHub ↗

Small button with single emoji as text, fits inside gradio forms

Source from the content-addressed store, hash-verified

10
11
12class ToolButton(FormComponent, gr.Button):
13 """Small button with single emoji as text, fits inside gradio forms"""
14
15 def __init__(self, *args, **kwargs):
16 classes = kwargs.pop("elem_classes", [])
17 super().__init__(*args, elem_classes=["tool", *classes], **kwargs)
18
19 def get_block_name(self):
20 return "button"
21
22
23class ResizeHandleRow(gr.Row):

Callers 7

create_tools_rowMethod · 0.90
create_uiFunction · 0.90
create_output_panelFunction · 0.90
create_refresh_buttonFunction · 0.90
uiMethod · 0.90
uiMethod · 0.90
uiMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected