Hans-Christoph Steiner wrote:
So all of the Tk widgets that I am using save their own state while they are running, then I am planning on querying them when the savefn is called to save their state, and of course, do the opposite when opening.
how are you going to do that? when the savefn is called, will you send a request to the pd-gui, stall the pd-engine while waiting for the result (tricky, as the talkback channel will also be stalled) and only then return from savefn?
do you bear in mind that the savefn is called everytime you copy the object or even edit an existing object?
that'll make the widget library pretty much unusable for live patching.
i think a better way would be to dump the "content" of the widget to the pd-engine everytime it is (actively?) changed. you don't need any special structure for this, just store the list in a save place and use it whenever the savefn gets called.
fgamdsr IOhannes