Looks quite nice! One thing that might make your Tcl-side development easier is to put all the Tcl code into a tglgrid.tcl file and load that in the setup() function. The template Makefile will automatically handle that file for you. You can see an example of that in hcs/cursor.c: http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/hcs/cursor.c?view=markup http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/hcs/cursor.tcl?view=markup
Then you can also better manage redraws within the Tk event loop using the [after idle [after 0]] hack: http://wiki.tcl.tk/9926 .hc On 03/27/2013 05:34 AM, Nick Lanham wrote: > Posting here too since I got a lot of silence on pd-dev. From the README: > > A tglgrid is a grid of cells that can each be toggled on and off. It can be > instantiated with different dimensions depending on your project's needs. You > can bang the left input to output a list of the active cells in the currently > active column and send a column number to the right input to select the active > column. Cells can also be toggled and/or turned on/off by sending messages: > "tgl col row", "on col row", or "off col row". > > Right now this has only been tested on linux. I would appreciate any reports > about success and/or failure of running this in other environments. > > The github page is here: https://github.com/nicklan/tglgrid You can find > screenshots there if you're interested. > > As this is my first external, I'm sure I've made some horrible coding/design > mistakes and appreciate any feedback in that regard. > > Cheers! > > -Nick > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list