Thread View: comp.lang.tcl
10 messages
10 total messages
Started by Helmut Giese
Fri, 23 Oct 2026 20:21
A tool for drawing diagrams
Author: Helmut Giese
Date: Fri, 23 Oct 2026 20:21
Date: Fri, 23 Oct 2026 20:21
25 lines
1999 bytes
1999 bytes
Hello out there,
I am looking for a tool to interactively draw flow charts. I know
there exists a 'diagram' package in tklib but trying it today it
resulted in
invalid command name "tk"
while executing
"error $result"
(procedure "Comp.Define" line 12)
invoked from within
"Comp.Define [Comp.Compile type $type $body]"
(procedure "snit::type" line 2)
invoked from within
"snit::type ::diagram::core {
...
on a simple 'package require diagram'.
Andreas Kupries wrote somewhere on the Wiki about a 'Diagrams' package
(note the capital 'D' and the 's' at the end) - but I could not find
any trace of it.
Q1: What (Tcl) tools do you use or can you recommend?
Q2: Are there any apps using a TK package which could serve as a demo?
Any idea or link or other help wil be greatly appreciated
Helmut
Re: A tool for drawing diagrams
Author: Robert Heller
Date: Fri, 23 Oct 2026 20:42
Date: Fri, 23 Oct 2026 20:42
39 lines
2742 bytes
2742 bytes
At Fri, 23 Oct 2026 22:21:44 +0200 Helmut Giese <hgiese@ratiosoft.com> wrote:
>
> Hello out there,
> I am looking for a tool to interactively draw flow charts. I know
> there exists a 'diagram' package in tklib but trying it today it
> resulted in
> invalid command name "tk"
> while executing
> "error $result"
> (procedure "Comp.Define" line 12)
> invoked from within
> "Comp.Define [Comp.Compile type $type $body]"
> (procedure "snit::type" line 2)
> invoked from within
> "snit::type ::diagram::core {
> ...
> on a simple 'package require diagram'.
This suggests that the diagram package is missing a 'package require Tk'...
>
> Andreas Kupries wrote somewhere on the Wiki about a 'Diagrams' package
> (note the capital 'D' and the 's' at the end) - but I could not find
> any trace of it.
>
> Q1: What (Tcl) tools do you use or can you recommend?
> Q2: Are there any apps using a TK package which could serve as a demo?
>
> Any idea or link or other help wil be greatly appreciated
> Helmut
>
>
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
Re: A tool for drawing diagrams
Author: Nicolas ROBERT
Date: Sat, 24 Oct 2026 06:35
Date: Sat, 24 Oct 2026 06:35
2 lines
997 bytes
997 bytes
> I am looking for a tool to interactively draw flow charts. Maybe on this list : https://tcltk-pkgs.pages.dev/#/search?q=diagram
Re: A tool for drawing diagrams
Author: Helmut Giese
Date: Sat, 24 Oct 2026 15:27
Date: Sat, 24 Oct 2026 15:27
22 lines
1994 bytes
1994 bytes
Hello Robert,
>> Hello out there,
>> I am looking for a tool to interactively draw flow charts. I know
>> there exists a 'diagram' package in tklib but trying it today it
>> resulted in
>> invalid command name "tk"
>> while executing
>> "error $result"
>> (procedure "Comp.Define" line 12)
>> invoked from within
>> "Comp.Define [Comp.Compile type $type $body]"
>> (procedure "snit::type" line 2)
>> invoked from within
>> "snit::type ::diagram::core {
>> ...
>> on a simple 'package require diagram'.
>
>This suggests that the diagram package is missing a 'package require Tk'...
spot on: calling it from wish the error disappeared.
Now if only I had an example of its use ...
Many thanks
Helmut
Re: A tool for drawing diagrams
Author: Helmut Giese
Date: Sat, 24 Oct 2026 15:47
Date: Sat, 24 Oct 2026 15:47
10 lines
1693 bytes
1693 bytes
Hello Nicolas, >> I am looking for a tool to interactively draw flow charts. >Maybe on this list : https://tcltk-pkgs.pages.dev/#/search?q=diagram what an impresive list: almost 20 entries based on something called 'tudiagram' which itself is based on or using 'MerMaid'. Unfortunately the documentation is rather terse and assumes a lot of domain specific knowledge. I will try to pursue this path. Many thanks for sharing Helmut
Re: A tool for drawing diagrams
Author: Olivier
Date: Sat, 24 Oct 2026 15:50
Date: Sat, 24 Oct 2026 15:50
25 lines
1514 bytes
1514 bytes
Helmut Giese <hgiese@ratiosoft.com> posted: > Hello out there, > > Andreas Kupries wrote somewhere on the Wiki about a 'Diagrams' package > (note the capital 'D' and the 's' at the end) - but I could not find > any trace of it. > > Q1: What (Tcl) tools do you use or can you recommend? > Q2: Are there any apps using a TK package which could serve as a demo? > > Any idea or link or other help wil be greatly appreciated > Helmut This is probably this : https://wiki.tcl-lang.org/page/Drawing+diagrams And the examples there (hidden in Tklib !) : https://core.tcl-lang.org/tklib/dir?ci=tip&name=examples/diagrams Olivier.
Re: A tool for drawing diagrams
Author: Helmut Giese
Date: Sat, 24 Oct 2026 18:54
Date: Sat, 24 Oct 2026 18:54
29 lines
2326 bytes
2326 bytes
Hello Olivier; >This is probably this : > >https://wiki.tcl-lang.org/page/Drawing+diagrams > >And the examples there (hidden in Tklib !) : > >https://core.tcl-lang.org/tklib/dir?ci=tip&name=examples/diagrams thanks very much - yes, this is it. When I followed the examples link I had a 'déja vue' moment: The circle has closed (as we say in Germany). In this link I found the sentence Newcomers should read the "Diagram Language Tutorial" first and this rang a bell. When googling for "Diagram Language Tutorial" I found a ticket at core.tcl-lang.org asking for a link for that tutorial issued by /me/ - more than 10 years ago. Andreas Kupries posted there one day later Apparently missing. Hopefully only the link is broken, instead of it not being written yet. Apparently it has never been written - or not posted. Now this is really sad - all the work spent to create this package for so little use. In fact Google found no actual /use/ of the package when asked for tcl "package require diagram" so its uses - if any - have never been posted. A somewhat sad Helmut
Re: A tool for drawing diagrams
Author: saito
Date: Sat, 24 Oct 2026 20:27
Date: Sat, 24 Oct 2026 20:27
14 lines
1749 bytes
1749 bytes
On 10/23/2026 4:21 PM, Helmut Giese wrote: > Hello out there, > I am looking for a tool to interactively draw flow charts. ...> Q1: What (Tcl) tools do you use or can you recommend? > Q2: Are there any apps using a TK package which could serve as a demo? > > Any idea or link or other help wil be greatly appreciated Not sure exactly what you are looking for but this may be useful. I believe it is originally from the wiki; I am not able to check now. https://justpaste.it/i3j3q
Re: A tool for drawing diagrams
Author: Helmut Giese
Date: Sun, 25 Oct 2026 19:40
Date: Sun, 25 Oct 2026 19:40
8 lines
1447 bytes
1447 bytes
Hello saito, >Not sure exactly what you are looking for but this may be useful. I >believe it is originally from the wiki; I am not able to check now. > >https://justpaste.it/i3j3q > thank you, I will look into it. Helmut
Re: A tool for drawing diagrams
Author: greg
Date: Sun, 25 Oct 2026 19:56
Date: Sun, 25 Oct 2026 19:56
35 lines
2390 bytes
2390 bytes
Am 23.10.26 um 22:21 schrieb Helmut Giese:
> Hello out there,
> I am looking for a tool to interactively draw flow charts. I know
> there exists a 'diagram' package in tklib but trying it today it
> resulted in
> invalid command name "tk"
> while executing
> "error $result"
> (procedure "Comp.Define" line 12)
> invoked from within
> "Comp.Define [Comp.Compile type $type $body]"
> (procedure "snit::type" line 2)
> invoked from within
> "snit::type ::diagram::core {
> ...
> on a simple 'package require diagram'.
>
> Andreas Kupries wrote somewhere on the Wiki about a 'Diagrams' package
> (note the capital 'D' and the 's' at the end) - but I could not find
> any trace of it.
>
> Q1: What (Tcl) tools do you use or can you recommend?
> Q2: Are there any apps using a TK package which could serve as a demo?
>
> Any idea or link or other help wil be greatly appreciated
> Helmut
Hello,
A very good website regarding Tcl and diagrams is
https://github.com/mittelmark/
specifically tblocks and tdot there
Regards,
Gregor
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads