[PD] plugin.tcl not changing anything, linux

IOhannes m zmoelnig zmoelnig at iem.at
Fri Mar 4 09:08:11 CET 2022


On 3/4/22 04:31, Samuel Burt wrote:
> IOhannes and James. Thanks for the replies.
> 
> I found the relevant line in pdtk_canvas.tcl. I know modifying that isn't
> permanent, because the next update might break it, but it did let me
> replace -background white with -background gray95, which is cool. Now, I'll
> just have to figure out if it's possible to reuse this command in a tcl
> plugin file.


like this "mybackground-plugin.tcl"?

```
bind PatchWindow <Configure> "+%W.c configure -background yellow"
```

this adds a hook, so that whenever a PatchWindow is updated (that is: 
created, or moved around,...), it will re-configure the background 
property to your liking.

gfmdsr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20220304/bbd51939/attachment-0001.sig>


More information about the Pd-list mailing list