3d text tool - 'insert lorem' was crashing, also add this to the text menu.
[blender.git] / doc / python_api / examples / bpy.types.WindowManager.popup_menu.py
1 """
2 Popup Menus
3 +++++++++++
4 Popup menus can be useful for creating menus without having to register menu classes.
5
6 Note that they will not block the scripts execution, so the caller can't wait for user input.
7 """
8
9 import bpy
10
11
12 def draw(self, context):
13     self.layout.label("Hello World")
14
15 bpy.context.window_manager.popup_menu(draw, title="Greeting", icon='INFO')