I've collected some tricks since I'm using sys_gui, attached are the ones you might need to build and communicate with your interface through pd, if sys_gui is ok on raspberry, all the tcl and tk code is fully documented online...
Tested on Pd 0.45.0 Colet Patrice ----- Mail original ----- > De: "Colet Patrice" <[email protected]> > À: "Jack" <[email protected]>, [email protected] > Envoyé: Dimanche 22 Septembre 2013 21:29:24 > Objet: Re: [PD] Gridflow and fonts on Raspberry Pi > > Hello jack, > > I don't know about raspberry, but it seems tcltk is used for te > GUI, > so what about using [sys_gui] for generating the interface? > > a toplevel -fullscreen should be able to do what you are looking > for, > it's also possible to create fonts > > Le 22/09/2013 19:10, Jack a écrit : > > Hello, > > > > I found gridflow for Raspberry Pi here : > > http://artengine.ca/acastonguay/gridflow/ > > And see a message from Claude here about Gridflow font : > > http://lists.puredata.info/pipermail/pd-list/2006-01/034431.html > > > > My questions : > > I would like to use Raspberry Pi and Pd to render text on a screen. > > I guess Gridflow could be the right library to use if it can manage > > fonts and if it is stable on RPi ? > > Is there an other library (or idea) for this purpose ? For example > > : a > > pd window in fullscreen with a canvas with text ? In this case, how > > to > > achieve that (fullscreen without menubar and window title bar with > > pd). > > > > I am on raspbian : > > PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)" > > NAME="Raspbian GNU/Linux" > > VERSION_ID="7" > > VERSION="7 (wheezy)" > > Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 > > armv6l GNU/Linux > > with Pd-0.45.2 ("") compiled 16:14:18 Sep 17 2013. > > Thanx for any help. > > ++ > > > > Jack > > > > > > > > _______________________________________________ > > [email protected] mailing list > > UNSUBSCRIBE and account-management -> > > http://lists.puredata.info/listinfo/pd-list > >
#N canvas 368 319 1135 382 10; #X obj 18 118 sys_gui; #X msg 18 85 eval [read [open my_script.tcl]] \, my_proc arg1 arg2 \, rename my_proc ""; #X obj 94 300 sys_gui; #X obj 34 214 b; #X obj 147 213 b; #X obj 66 258 t b b; #X obj 25 350 b; #X obj 157 350 b; #X obj 66 231 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 66 329 do something; #X obj 266 284 sys_gui; #X obj 266 226 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 266 308 do something; #X text 41 184 wrong; #X text 266 187 good; #X text 69 160 tcl procedure is slower than triggers; #X obj 433 133 sys_gui; #X obj 433 75 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 8 1 patko2013; #X msg 433 113 pdsend "foo-s Hello World"; #X obj 432 157 r foo-s; #X obj 432 179 print foo; #X text 428 46 using FUDI; #X obj 664 164 sys_gui; #X text 16 48 evaluate a tcl script \, launch a procedure \, and remove procedure from memory for avoiding duplicated proc errors; #X obj 266 331 print something; #X msg 689 131 destroy .mytoplevel; #X msg 664 39 toplevel .mytoplevel; #X msg 686 88 wm attributes .mytoplevel -fullscreen 1; #X text 657 20 build a toplevel widget; #X text 685 66 make it fullscreen; #X text 695 110 close toplevel; #X obj 664 349 sys_gui; #X msg 266 264 puts "Hello World!"; #X msg 94 280 puts "Hello World!"; #X msg 664 238 font create my_font -family [list Lucida Sans] -size 14 -weight bold; #X msg 696 291 text .mytoplevel.text -font my_font \, pack .mytoplevel.text ; #X text 697 273 puts some text on toplevel; #X msg 714 314 .mytoplevel.text insert end "Hello World!"; #X text 657 205 create some fonts (can be done only once by instance \, so it's better inside a proc); #X connect 1 0 0 0; #X connect 3 0 7 0; #X connect 4 0 6 0; #X connect 5 0 9 0; #X connect 5 1 34 0; #X connect 8 0 5 0; #X connect 10 0 12 0; #X connect 11 0 33 0; #X connect 12 0 25 0; #X connect 17 0 19 0; #X connect 19 0 16 0; #X connect 20 0 21 0; #X connect 26 0 23 0; #X connect 27 0 23 0; #X connect 28 0 23 0; #X connect 33 0 10 0; #X connect 34 0 2 0; #X connect 35 0 32 0; #X connect 36 0 32 0; #X connect 38 0 32 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
