Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bpy_types.py
| Context not available. | |||||
| self.piemenu_end__internal(pie) | self.piemenu_end__internal(pie) | ||||
| class WorkSpace(bpy_types.ID): | |||||
| __slots__ = () | |||||
| def status_text_set(self, text): | |||||
| """ | |||||
| Set the status text or None to clear, | |||||
| When text is a function, this will be called with the (header, context) arguments. | |||||
| """ | |||||
| from bl_ui.space_statusbar import STATUSBAR_HT_header | |||||
| draw_fn = getattr(STATUSBAR_HT_header, "_draw_orig", None) | |||||
| if draw_fn is None: | |||||
| draw_fn = STATUSBAR_HT_header._draw_orig = STATUSBAR_HT_header.draw | |||||
| if not (text is None or isinstance(text, str)): | |||||
| draw_fn = text | |||||
| text = None | |||||
| self.status_text_set_internal(text) | |||||
| STATUSBAR_HT_header.draw = draw_fn | |||||
| class _GenericBone: | class _GenericBone: | ||||
| """ | """ | ||||
| functions for bones, common between Armature/Pose/Edit bones. | functions for bones, common between Armature/Pose/Edit bones. | ||||
| Context not available. | |||||