BallanceBlenderHelper/ballance_blender_plugin/utils.py

10 lines
275 B
Python
Raw Normal View History

2020-07-12 21:04:38 +08:00
import bpy
2020-09-03 13:57:06 +08:00
from bpy_extras.io_utils import unpack_list
2020-07-12 21:04:38 +08:00
def ShowMessageBox(message = "", title = "Message Box", icon = 'INFO'):
def draw(self, context):
self.layout.label(text=message)
2020-09-03 13:57:06 +08:00
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)