Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/wm.py
| Show First 20 Lines • Show All 2,283 Lines • ▼ Show 20 Lines | def invoke(self, context, event): | ||||
| print("Tool", cls.tool_fallback_id, "not active in", cls) | print("Tool", cls.tool_fallback_id, "not active in", cls) | ||||
| return {'PASS_THROUGH'} | return {'PASS_THROUGH'} | ||||
| def draw_cb(self, context): | def draw_cb(self, context): | ||||
| from bl_ui.space_toolsystem_common import ToolSelectPanelHelper | from bl_ui.space_toolsystem_common import ToolSelectPanelHelper | ||||
| ToolSelectPanelHelper.draw_fallback_tool_items_for_pie_menu(self.layout, context) | ToolSelectPanelHelper.draw_fallback_tool_items_for_pie_menu(self.layout, context) | ||||
| wm = context.window_manager | wm = context.window_manager | ||||
| wm.popup_menu_pie(draw_func=draw_cb, title="Fallback Tool", event=event) | wm.popup_menu_pie(draw_func=draw_cb, title=iface_("Fallback Tool"), event=event) | ||||
| return {'FINISHED'} | return {'FINISHED'} | ||||
| class WM_OT_toolbar_prompt(Operator): | class WM_OT_toolbar_prompt(Operator): | ||||
| """Leader key like functionality for accessing tools""" | """Leader key like functionality for accessing tools""" | ||||
| bl_idname = "wm.toolbar_prompt" | bl_idname = "wm.toolbar_prompt" | ||||
| bl_label = "Toolbar Prompt" | bl_label = "Toolbar Prompt" | ||||
| ▲ Show 20 Lines • Show All 964 Lines • Show Last 20 Lines | |||||