Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bpy.types.WindowManager.popup_menu.py « examples « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 670444b8283d63fb7cd29f06860650cff171cf2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
Popup menus can be useful for creating menus without having to register menu classes.

Note that they will not block the scripts execution, so the caller can't wait for user input.
"""

import bpy


def draw(self, context):
    self.layout.label(text="Hello World")


bpy.context.window_manager.popup_menu(draw, title="Greeting", icon='INFO')