Re: Changes to ipeui.Dialog?
Jan Hlavacek <[email protected]>
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Sep 25, 2011 at 09:19:24AM +0900, Otfried Cheong wrote: > 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") Thank you, that worked perfectly. -- Jan Hlavacek ([email protected], (989) 964-2004) Department of Mathematical Sciences, Saginaw Valley State University http://www.svsu.edu/~jhlavace/