BallanceBlenderHelper/ballance_blender_plugin/utils.py

8 lines
230 B
Python
Raw Normal View History

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