(**kwargs)
| 214 | |
| 215 | @staticmethod |
| 216 | def input(**kwargs): |
| 217 | attrs = {"type": "InputProperty"} |
| 218 | if kwargs.get("multiple_input", False) or kwargs.get("repeat_command", False): |
| 219 | attrs["command"] = "AddInputConnection" |
| 220 | # FIXME: input property doesn't support cleaning port connections alone :( |
| 221 | attrs["clean_command"] = "RemoveAllInputs" |
| 222 | else: |
| 223 | attrs["command"] = "SetInputConnection" |
| 224 | |
| 225 | # todo: handle inputType |
| 226 | attrs.update(kwargs) |
| 227 | return _create_decorator(attrs, |
| 228 | update_func=smproperty._update_property_defaults, |
| 229 | generate_xml_func=smproperty._generate_xml) |
| 230 | |
| 231 | @staticmethod |
| 232 | def dataarrayselection(name=None): |
no test coverage detected