From: Albert S. firstname.lastname@example.org
Subject: Re: Tk supports only GIF?
Date: Sun, 25 Jan 2009 08:07:29 +0900
If you talk about standard Tcl/Tk only, the answer is “YES”
BTW, I’m not sure I understand what you wrote here. (What does "standard
I’m sorry about my poor English.
I said it as “Tcl/Tk with no extension”.
As you know, Ruby/Tk uses Tcl/Tk libraries.
It means that functions supported by your Ruby/Tk depend on your
Tcl/Tk on your environment.
When you have no Tcl/Tk extensions on your environment,
Ruby/Tk can use Tcl/Tk’s standard (built-in) widgets and functions only.
Tcl/Tk’s “photo” manual describes “At present, only GIF and PPM/PGM
formats are supported”.
Tcl/Tk’s “Img” extension library (loadable module) adds support for
some other image formats to Tcl/Tk.
And then, Ruby/Tk can treat image formats supported by “Img” extension.
Ruby/Tk can use almost all of Tcl/Tk extensions.
For some of them, Ruby/Tk has wrapper libraries (“tkextlib/*”).
For others, although there are no wrapper libraries, Ruby/Tk can call
functions of those extensions directly (by “Tk.tk_call” method),
I think that it is not so difficult to write a wrapper library for
such a extension.