Re: Changes to ipeui.Dialog?
Otfried Cheong <[email protected]>
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Message-ID | <[email protected]> |
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. Otfried