From: Webb S. on
Is there a pre-made popup widget for having the user enter text?
Along the lines of tk_messageBox and friends?

I realize that this is a fairly basic programming exercise if there
isn't one in the distribution, but it would be nice to have something
ready to use that is standard (for 8.6?).

Forgive me if this is a FAQ or was answered recently -- google didn't
turn anything up for me.

Tx
From: Gerhard Reithofer on
Hi,

On Sun, 16 May 2010, Webb S. wrote:

> Is there a pre-made popup widget for having the user enter text?
> Along the lines of tk_messageBox and friends?
>
> I realize that this is a fairly basic programming exercise if there
> isn't one in the distribution, but it would be nice to have something
> ready to use that is standard (for 8.6?).
>
> Forgive me if this is a FAQ or was answered recently -- google didn't
> turn anything up for me.

take a look at:
http://tcllib.sourceforge.net/doc/tk_getString.html

--
Gerhard Reithofer
Tech-EDV Support Forum - http://support.tech-edv.co.at
From: Webb S. on

> take a look at:
>  http://tcllib.sourceforge.net/doc/tk_getString.html

It seems that my freebsd ports install of tcllib doesn't include
tklib, and I can't find a corresponding "tklib"

Sort of related: is there a reason this isn't in the core tk library,
alongside tk_messageBox and friends? It would be nice to have an easy
answer to zenity....

I will work on this later, but any freebsd info would be helpful.
From: Gerald W. Lester on
Webb S. wrote:
>> take a look at:
>> http://tcllib.sourceforge.net/doc/tk_getString.html
>
> It seems that my freebsd ports install of tcllib doesn't include
> tklib, and I can't find a corresponding "tklib"
>
> Sort of related: is there a reason this isn't in the core tk library,
> alongside tk_messageBox and friends? It would be nice to have an easy
> answer to zenity....
>
> I will work on this later, but any freebsd info would be helpful.

It is pure Tcl code, just go to sf.net, download it and run the install.


--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+

--- news://freenews.netfront.net/ - complaints: news(a)netfront.net ---
From: Webb S. on

> > I will work on this later, but any freebsd info would be helpful.
>
> It is pure Tcl code, just go to sf.net, download it and run the install.

I actually copied over the code to somewhere convenient (yay free
software). I rarely install into a machine that is using something
like ports to manage its software. This will do for now.

If I get over my intertia I am going to fill out a feature request
that Tcl/Tk ship with a tk_textentry popup (just like tk_dialog and
friends) as part of the core in 8.6. I actually think it is sort of
important that we continue to "make easy things easy" (especially if
zenity makes them easy), and this seems trivial.