On Fri, Mar 28, 2008 at 3:25 PM, Robert Miller <[EMAIL PROTECTED]> wrote: > William, > > Just playing around with @interact a little, and I have a basic > question that isn't answered by the examples on the wiki, or as far as > I can tell the docs in the source itself. Maybe I asked in Arizona, > but I've recovered from that trip now, and I don't remember... > > Anyway, is there a way to have the interact widget remember anything > between interactions? Even something as simple as a set of buttons, > each of which when clicked adds a certain letter to a text box? > Everything seems to default back when I click something, even things I > don't want to.
Yes. First, widgets do *not* default back when you click something. I don't know why you think that. Second you can store global state information before @interact -- see, e.g., the egg painter: http://wiki.sagemath.org/interact#head-9677e1d6e7c5e7f87173ae7dc82494a072ac0578 which stores global state information. -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---