diff options
author | Spaceginner <ivan.demian2009@gmail.com> | 2023-01-27 12:35:54 +0000 |
---|---|---|
committer | Spaceginner <ivan.demian2009@gmail.com> | 2023-01-27 12:35:54 +0000 |
commit | 56c83e453a2ac333a0888ab3835ad4c82feacc25 (patch) | |
tree | bf7090e3b8faf0ab02e3fe5bd43ac1cde2dc62dc /modules/ui_components.py | |
parent | 9ecf1e827c5966e11495a0c066a127defbba9bcc (diff) | |
parent | 63391419c11c1749a3d83dade19235a836c509f9 (diff) | |
download | stable-diffusion-webui-gfx803-56c83e453a2ac333a0888ab3835ad4c82feacc25.tar.gz stable-diffusion-webui-gfx803-56c83e453a2ac333a0888ab3835ad4c82feacc25.tar.bz2 stable-diffusion-webui-gfx803-56c83e453a2ac333a0888ab3835ad4c82feacc25.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r-- | modules/ui_components.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py index 9aec3097..284ca0cf 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -48,3 +48,11 @@ class FormColorPicker(gr.ColorPicker, gr.components.FormComponent): def get_block_name(self):
return "colorpicker"
+
+class DropdownMulti(gr.Dropdown):
+ """Same as gr.Dropdown but always multiselect"""
+ def __init__(self, **kwargs):
+ super().__init__(multiselect=True, **kwargs)
+
+ def get_block_name(self):
+ return "dropdown"
|