Re: [Iup-users] problem with iup.pplot clear and iup.pplot.redraw?
Brought to you by:
scuri
From: Benoit G. <bge...@ub...> - 2011-02-23 07:57:55
|
Ah indeed. Note that it works too when setting the attribute to nil, but not when setting it to a table :). Thanks, Benoit. From: Antonio Scuri [mailto:sc...@te...] Sent: Tuesday, February 22, 2011 7:56 PM To: 'IUP discussion list.' Subject: Re: [Iup-users] problem with iup.pplot clear and iup.pplot.redraw? The problem is that you are using: plot.clear = true plot.redraw = true But you cannot use Lua boolean for IUP attributes. I know that would be more intuitive, but IUP attributes are strings, so internally we check for strings, since Lua automatically converts numbers to strings when doing that, numbers work fine. But Booleans are not automatically converted in Lua. Changing your code to: plot.clear = "Yes" plot.redraw = "Yes" The sample works fine. Best, Scuri |