MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / show

Method show

modules/scripts.py:116–126  ·  view source on GitHub ↗

is_img2img is True if this function is called for the img2img interface, and False otherwise This function should return: - False if the script should not be shown in UI at all - True if the script should be shown in UI if it's selected in the scripts dropdow

(self, is_img2img)

Source from the content-addressed store, hash-verified

114 pass
115
116 def show(self, is_img2img):
117 """
118 is_img2img is True if this function is called for the img2img interface, and False otherwise
119
120 This function should return:
121 - False if the script should not be shown in UI at all
122 - True if the script should be shown in UI if it's selected in the scripts dropdown
123 - script.AlwaysVisible if the script should be shown in UI at all times
124 """
125
126 return True
127
128 def run(self, p, *args):
129 """

Callers 3

elem_idMethod · 0.95
initialize_scriptsMethod · 0.45
crop_imageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected