<div dir="ltr">For the records, I found a workaround/solution.<div><br></div><div>Basically my operator bl_label is the message I want to ask, and in the ui I change the displayed text.</div><div><br></div><div>bl_label = "Are you sure you want to remove all objects?"<br>

</div><div>layout.operator("object.delete_all_my", text="Delete All")<br><br>I even tried to change the bl_label, but that asserts Blender:</div><div><br></div><div><div>def invoke(self, context, event):</div>

<div>    self.bl_label = "Object: {0}".format(<a href="http://context.active_object.name">context.active_object.name</a>)</div><div>    return context.window_manager.invoke_confirm(self, event)</div></div><div>
<br>
</div><div>Assertion failed: (!"setting the bl_label on a non-builtin operator"), function rna_Operator_bl_label_set, file /Users/dfelinto/blender/blender-svn/blender/source/blender/makesrna/intern/rna_wm.c, line 1329.<br>

<br><br>Anyways, I'm happy with the solution I have now. But I will certainly look at custom python popup later. Thanks.<br><br>Dalai</div></div><div class="gmail_extra"><br clear="all"><div>--<br><a href="http://blendernetwork.org/dalai-felinto" target="_blank">blendernetwork.org/dalai-felinto</a><br>

<a href="http://www.dalaifelinto.com" target="_blank">www.dalaifelinto.com</a></div>
<br><br><div class="gmail_quote">2013/10/15 Campbell Barton <span dir="ltr"><<a href="mailto:ideasman42@gmail.com" target="_blank">ideasman42@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Have you looked into using a custom python popup?<br>
<br>
<a href="http://www.blender.org/documentation/blender_python_api_2_69_1/bpy.types.WindowManager.html#bpy.types.WindowManager.popup_menu" target="_blank">http://www.blender.org/documentation/blender_python_api_2_69_1/bpy.types.WindowManager.html#bpy.types.WindowManager.popup_menu</a><br>


<div><div class="h5"><br>
On Mon, Oct 14, 2013 at 2:25 PM, Dalai Felinto <<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> First a question, is it possible to have a custom message when I use<br>
> invoke_confirm?<br>
><br>
> Apparently there is not, and the not-so-nice alternative is to use<br>
> invoke_props_dialog and have my own draw() function.<br>
><br>
> Assuming that it's not possible, would that be a nice addition?<br>
> I think I can do that myself, but I would like to get 'design approval'<br>
> first.<br>
><br>
> My proposal is to do:<br>
> context.window_manager.invoke_confirm(self, event, text="Are you sure you<br>
> want to do whatever with object \"{0}\"".format(context.object))<br>
><br>
> I may do it anyways for a project I'm working on. But it would be nicer if<br>
> it can be incorporated back in Blender.<br>
><br>
> (also I may not do it any soon, so if anyone wants to do first, be my guest)<br>
><br>
> Cheers,<br>
> Dalai<br>
> --<br>
> <a href="http://blendernetwork.org/dalai-felinto" target="_blank">blendernetwork.org/dalai-felinto</a><br>
> <a href="http://www.dalaifelinto.com" target="_blank">www.dalaifelinto.com</a><br>
><br>
</div></div>> _______________________________________________<br>
> Bf-python mailing list<br>
> <a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
> <a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
- Campbell<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</font></span></blockquote></div><br></div>