----- Original Message -----

> From: Hans-Christoph Steiner <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Thursday, January 24, 2013 4:30 PM
> Subject: Re: [PD] gui elements documentation / list
> 
> 
> Pd uses almost all of the available widgets in Tk:
> http://www.tcl.tk/man/tcl8.5/Keywords/W.htm#widget
> 
> The 'text' widget doesn't respond to -size:
> http://www.tcl.tk/man/tcl8.5/TkCmd/text.htm

The reported error is in regard to an option for a
text item on a canvas widget, not an option for the text
widget.  Those two concepts share the same name--
"text"-- but that is it.

tk -> text widget = powerful multiline text display, lots of control over 
text/font settings, can embed images and other tk widgets
tk -> canvas -> text item = limited text display inside a prexisting canvas, 
limited control over text/font, no embedding

-Jonathan

> 
> You need to specify the point or pixel size as part of the font:
> $tkcanvas itemconfigure text -fill red -font {Helvetica 16}  ;# points
> $tkcanvas itemconfigure text -fill red -font {Helvetica -16}  ;# negative is
> pixels
> 
> You can also create a 'font' to have that setting in one spot:
> http://www.tcl.tk/man/tcl8.5/TkCmd/font.htm
> 
> Please add anything you find useful to the wiki:
> http://puredata.info/docs/guiplugins/GUIPlugins/
> 
> .hc
> 
> On 01/24/2013 04:06 PM, me.grimm wrote:
>>  i finally have a chance to play around with the gui-plugin stuff. using
>>  "tkcanvas itemconfigure" im playing around with changing the look 
> of my
>>  patches in performance mode. question: is there a list / documentation of
>>  the gui elements? other than reading over the pd-gui tcl code?
>> 
>>  without knowing much i was doing things like:
>> 
>>  $tkcanvas itemconfigure text -fill red -font Helvetica -size 16
>> 
>>  but -size gives me error
>> 
>>  so maybe there is something more other than a trial and error approach or
>>  use of css knowledge which obviously does not completely translate.
>> 
>> 
>>  m
>> 
>> 
>> 
>>  _______________________________________________
>>  [email protected] mailing list
>>  UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
>> 
> 
> _______________________________________________
> [email protected] mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to