Home > Archive > Tcl > June 2006 > Basic NUUB how-to question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Basic NUUB how-to question
|
|
| John Peters 2006-06-25, 7:06 pm |
| I'm interested in getting a program similar to one written in Borland
C++ Builder running on my linux machine, and just found vtcl (I have a
few books on the way).
I have a form with a $Widget(entry), $Widget(editor), and
$Widget(pushbutton) on it. When a user clicks on the pushbutton, a file
should open into the editor window. The name of the file would be the
text in $Widget(entry). The cursor in the editor window should be at
the end of text, ready for appending. When the focus leaves the editor
window, the file should save.
I'm assuming the script would be in the command window for the
push-button. Thanks
| |
| Joel Haugen 2006-06-26, 4:21 am |
| John Peters wrote:
> I'm interested in getting a program similar to one written in Borland
> C++ Builder running on my linux machine, and just found vtcl (I have a
> few books on the way).
>
> I have a form with a $Widget(entry), $Widget(editor), and
> $Widget(pushbutton) on it. When a user clicks on the pushbutton, a file
> should open into the editor window. The name of the file would be the
> text in $Widget(entry). The cursor in the editor window should be at
> the end of text, ready for appending. When the focus leaves the editor
> window, the file should save.
>
> I'm assuming the script would be in the command window for the
> push-button. Thanks
>
What exactly is your question? Sounds like you have a plan on what you
want to do so it seems like you should go do it...
| |
| suchenwi 2006-06-27, 8:05 am |
|
John Peters schrieb:
> I haven't found the documentation yet to write the code. As I said, I have a book on the way, and the tutorial doesn't include events like writing to a text widget (it shows how to hide a window).
>
Well, the Tclers' Wiki has many examples. See for instance "A minimal
editor explained" http://wiki.tcl.tk/9623 for 26 lines of code that
give you write into text (proc loadText) and read from text (proc
saveText) functionality, and without requiring vtk :)
| |
| John Peters 2006-06-27, 7:04 pm |
| On 27 Jun 2006 06:17:22 -0700
"suchenwi" <richard.suchenwirth-bauersachs@siemens.com> wrote:
>
> John Peters schrieb:
>
> Well, the Tclers' Wiki has many examples. See for instance "A minimal
> editor explained" http://wiki.tcl.tk/9623 for 26 lines of code that
> give you write into text (proc loadText) and read from text (proc
> saveText) functionality, and without requiring vtk :)
>
Thanks; I'm not finding a lot of info on Visual TCL, and will pursue the resources within TCL itself; looks like an interesting language.
| |
| Larry W. Virden 2006-06-27, 7:04 pm |
|
John Peters wrote:
> Thanks; I'm not finding a lot of info on Visual TCL, and will pursue the resources within TCL itself; looks like an interesting language.
There are at least two Visual Tcl's of which I know. One is a really
really old commercial package designed to work with CDE. The code is
not available, and all the doc of which I am aware was published in a
book about 10 yrs ago.
Another is a GUI based application building program. Any information
we've mentioned about Tcl and Tk to date would apply to using with that
program. There's not much info written about the program - I worked
with some people to get some intro tutorials written back in the day,
but I don't believe I've seen much activity since then. There is, I
seem to recall, a web forum or mailing list for vtcl.
| |
| John Peters 2006-06-27, 7:04 pm |
| On 27 Jun 2006 10:24:44 -0700
"Larry W. Virden" <lvirden@gmail.com> wrote:
>
> John Peters wrote:
>
>
> There are at least two Visual Tcl's of which I know. One is a really
> really old commercial package designed to work with CDE. The code is
> not available, and all the doc of which I am aware was published in a
> book about 10 yrs ago.
>
> Another is a GUI based application building program. Any information
> we've mentioned about Tcl and Tk to date would apply to using with that
> program. There's not much info written about the program - I worked
> with some people to get some intro tutorials written back in the day,
> but I don't believe I've seen much activity since then. There is, I
> seem to recall, a web forum or mailing list for vtcl.
>
I'm using Visual TCL, ver 1.6 by Stewart Alan, at vtcl.sourceforge.net.
Based on the almost non-existant activity on their forum, it doesn't seem to have found much of a place among users. Perhaps TCL'ers prefer to do all the coding themselves, I don't know. I'm running Damn Small Linux distro, which included the package in t
heir working apps bin.
| |
| Gerald W. Lester 2006-06-27, 7:04 pm |
| John Peters wrote:
> On 27 Jun 2006 10:24:44 -0700
> "Larry W. Virden" <lvirden@gmail.com> wrote:
>
>
> I'm using Visual TCL, ver 1.6 by Stewart Alan, at vtcl.sourceforge.net.
> Based on the almost non-existant activity on their forum, it doesn't seem to have found much of a place among users. Perhaps TCL'ers prefer to do all the coding themselves, I don't know. I'm running Damn Small Linux distro, which included the package in
their working apps bin.
Most people just use their favorite text editor.
Using grid it is very easy to get a GUI looking like you want without having
to use something like Visual Tcl.
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
| |
| Cameron Laird 2006-06-27, 7:04 pm |
| In article <20060627121306.6965d36d.john@jpeters.net>,
John Peters <john@jpeters.net> wrote:
| |
| Gerald W. Lester 2006-06-27, 10:00 pm |
| Cameron Laird wrote:
> In article <20060627121306.6965d36d.john@jpeters.net>,
> John Peters <john@jpeters.net> wrote:
> .
> .
> .
>
>
> The great majority of Tcl developers *do* "prefer to do all the
> coding themselves". At the same time, vTcl is warmly regarded.
> We're trying to help, but as experts more in Tcl than vTcl (with
> a few exceptions--if you're lucky, GWL will check in).
I don't (and never have) used vTcl.
Sorry.
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
| |
| John Peters 2006-06-27, 10:00 pm |
| On Tue, 27 Jun 2006 15:09:44 -0500
"Gerald W. Lester" <Gerald.Lester@cox.net> wrote:
> John Peters wrote:
in their working apps bin.[color=darkred]
>
> Most people just use their favorite text editor.
>
> Using grid it is very easy to get a GUI looking like you want without having
> to use something like Visual Tcl.
I'm just trying to duplicate a highly used program written in Boreland that saves me HEAPS of time processing client records at the end of the day. I'm becoming more familiar with TCL, so I'll probably just end up writing the code.
| |
| Donal K. Fellows 2006-06-28, 4:02 am |
| Gerald W. Lester wrote:
> Cameron Laird wrote:
>
> I don't (and never have) used vTcl.
But we're lucky to have you checking in anyway. :-)
Donal.
|
|
|
|
|