[Ipe-discuss] Changes to ipeui.Dialog?

Otfried Cheong otfried at ipe.airpost.net
Sun Sep 25 02:19:24 CEST 2011

On 09/25/2011 07:27 AM, Jan Hlavacek wrote:
> Did anything change recently in the way the lua binding for dialog
> windows work?  I have an ipelet that worked perfectly fine several
> months ago, and now it gives me the following error:
> bad argument #1 to 'Dialog' (Ipe.winid expected, got userdata)
> This is the line that seems to trigger thr error:
> local d = ipeui.Dialog(model.ui, "Parametric plot")

Yes - starting with 7.1.0 you need to write

local d = ipeui.Dialog(model.ui:win(), "Parametric plot")

The change was necessary to the move for a Qt-independent interface.


More information about the Ipe-discuss mailing list