Yes, that's a problem with Tk, it does have platform-specific color
values and font names.
"SystemButtonText" comes from the Tk version of Windows (default value
for -foreground), and {MS Sans Serif} 8 is a Windows font name.
Uncheck the -foreground option in the attributes editor for the
button(s) in question and save your project again to remove this option
from your project.
Some fonts have the same name on both Linux and Windows, like "Arial",
"Helvetica" or "Times", maybe you could use these.
Or use the font mechanism where you create a font first, then you
specify the font object (font1, font2, etc.). Depending on the platform
your code can select a particular typeface but the widgets always refer
to font object like font1, font2, instead of "{Arial Bold} 14".
CG
Eric Taylor wrote:
> Hi:
>
> I have built a vtcl (1.6a2) program on windows, but when I try to
> run it on linux, I get this error:
>
> $ wish myapp.tcl
> Error in startup script: unknown color name "SystemButtonText"
> (processing "-foreground" option)
>
> Where do these "system" color names come from and is there a
> way to make them portable?
>
> This also reminds me to ask:
>
> Where do the font names like {MS Sans Serif} 8
> come from?
>
> Is there some sort of option command I can use to
> change these?
>
> thanks
> eric
>
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user