Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tkpath

324 views
Skip to first unread message

Nicolas

unread,
Jan 24, 2018, 9:45:16 AM1/24/18
to
Hi guys,
tkpath seems to be very powerful, but the name does not reflect it's purpose... (canvasSVG...?).

androWish seems to be the most recent place for tkpath. Is it possible to include it in tkLib?

as far as I understand one can do most canvas stuff in tkpath (except postscript), and tkpath can do more like zooming and vector drawing, so why tkpath is not so popular?

best regards,
nicolas

Christian Gollwitzer

unread,
Jan 24, 2018, 3:32:12 PM1/24/18
to
Am 24.01.18 um 15:45 schrieb Nicolas:
> tkpath seems to be very powerful, but the name does not reflect it's purpose... (canvasSVG...?).
>
> androWish seems to be the most recent place for tkpath. Is it possible to include it in tkLib?

tklib is not the right place, tklib contains script libraries written in
Tcl using Tk, whereas tkpath is naturally a compiled extension written
in C which can replace the standard Tk canvas.

> as far as I understand one can do most canvas stuff in tkpath (except postscript), and tkpath can do more like zooming and vector drawing, so why tkpath is not so popular?

It is used by some people, but the basic problem is that the original
author (Mats Bengtsson) has passed away in 2008 and nobody has stepped
up to push the development forward. Christian Werner from androwish has
done some maintenance work on it, but other than that development is
stalled.

OTOH, it is pretty complete. Actually I would vote for the replacement
of the Tk canvas in Tk 9 by tkpath.

Best regards,

Christian

Nicolas

unread,
Jan 25, 2018, 1:00:43 AM1/25/18
to
Hi Christian,
thank you for your answer

Le mercredi 24 janvier 2018 21:32:12 UTC+1, Christian Gollwitzer a écrit :
> Am 24.01.18 um 15:45 schrieb Nicolas:
> > tkpath seems to be very powerful, but the name does not reflect it's purpose... (canvasSVG...?).
> >
> > androWish seems to be the most recent place for tkpath. Is it possible to include it in tkLib?
>
> tklib is not the right place, tklib contains script libraries written in
> Tcl using Tk, whereas tkpath is naturally a compiled extension written
> in C which can replace the standard Tk canvas.

you're right... it's just that tkpath lack of visibility

>
> > as far as I understand one can do most canvas stuff in tkpath (except postscript), and tkpath can do more like zooming and vector drawing, so why tkpath is not so popular?
>
> It is used by some people, but the basic problem is that the original
> author (Mats Bengtsson) has passed away in 2008 and nobody has stepped
> up to push the development forward. Christian Werner from androwish has
> done some maintenance work on it, but other than that development is
> stalled.
>
> OTOH, it is pretty complete. Actually I would vote for the replacement
> of the Tk canvas in Tk 9 by tkpath.

wow... that would be nice

best regards,
Nicolas

>
> Best regards,
>
> Christian

Arjen Markus

unread,
Jan 25, 2018, 5:03:51 AM1/25/18
to
Well, if I remember correctly, a serious drawback is that it is not a drop-in replacement for the Tk canvas. You would have to change your code to use it and then there are things in the canvas that are not supported by tkpath. But I agree: it would be very very nice to have it included in the Tk core.

Regards,

Arjen

Christian Gollwitzer

unread,
Jan 25, 2018, 5:50:40 PM1/25/18
to
Am 25.01.18 um 11:03 schrieb Arjen Markus:
> On Thursday, January 25, 2018 at 7:00:43 AM UTC+1, Nicolas wrote:
>> Hi Christian,
>> thank you for your answer
>>
>> Le mercredi 24 janvier 2018 21:32:12 UTC+1, Christian Gollwitzer a écrit :
>>> Am 24.01.18 um 15:45 schrieb Nicolas:

>>> It is used by some people, but the basic problem is that the original
>>> author (Mats Bengtsson) has passed away in 2008 and nobody has stepped
>>> up to push the development forward. Christian Werner from androwish has
>>> done some maintenance work on it, but other than that development is
>>> stalled.
>>>
>>> OTOH, it is pretty complete. Actually I would vote for the replacement
>>> of the Tk canvas in Tk 9 by tkpath.
>>
>> wow... that would be nice
>>

>
> Well, if I remember correctly, a serious drawback is that it is not a drop-in replacement for the Tk canvas. You would have to change your code to use it

Are you sure? At http://wiki.tcl.tk/14545 I read:

"Tkpath 0.3.0 provides a new canvas widget that is supposed to be 100%
compatible with tk::canvas."

and then there are things in the canvas that are not supported by tkpath.

AFAIK it is the eps export - arguably a PDF export (via pdf4tcl) and/or
SVG export would be more useful today then EPS. And a misfeature of the
canvas: when you scale the content, photo images are not scaled -
because it is not supported. tkpath does scale them.


Christian

Arjen Markus

unread,
Jan 26, 2018, 3:07:06 AM1/26/18
to
On Thursday, January 25, 2018 at 11:50:40 PM UTC+1, Christian Gollwitzer wrote:

>
> >
> > Well, if I remember correctly, a serious drawback is that it is not a drop-in replacement for the Tk canvas. You would have to change your code to use it
>
> Are you sure? At http://wiki.tcl.tk/14545 I read:
>
> "Tkpath 0.3.0 provides a new canvas widget that is supposed to be 100%
> compatible with tk::canvas."
>

No :). I may be remembering from an earlier version.

> and then there are things in the canvas that are not supported by tkpath.
>

If my memory serves me correctly, then it was things like events on objects that were not supported. But again, that could be outdated information.

Regards,

Arjen

Georgios Petasis

unread,
Feb 3, 2018, 12:31:35 PM2/3/18
to
Perhaps some events. If I remember correctly, I have ported code from
canvas to tkpath, and there were the events I needed on items (like
clicking, enter/leave, etc.)

George

manfred.r...@gmail.com

unread,
May 16, 2018, 5:52:44 PM5/16/18
to
Hi
I use tkpath as a replacement of the standard tk::canvas in rattleCAD (http://rattlecad.sourceforge.net/). Therefor I build a package cad4tcl which handles both tk::canvas and tkpath depending on the existance of tkpath in the current runtime.
At first many thanks to Christian who supported me in bugfixing an important feature especially for rattleCAD.

cad4tcl is currently part of rattleCAD but can also be a standalone package to be used by others. cad4tcl offers some features like scaling/zooming, events on objects ...
Please take a look on rattleCAD and see the power of this package. The current version fullfills my requirements but I think there is a lot space for improvements. ;)
In between you can get the current version of cad4tcl from the rattleCAD repository on https://sourceforge.net/p/rattlecad/git/ci/3.5/tree/cad4tcl/ and get the latest tkpath library from Christians Androwish ...

I would also like to have an official version of the tkpath-library with the latest updates not only in Christians Environment of Androwish. Maybe Andrej will update his repository ...

Manfred

Harald Oehlmann

unread,
May 17, 2018, 3:08:01 AM5/17/18
to
Am 16.05.2018 um 23:52 schrieb manfred.r...@gmail.com:
> Hi
> I use tkpath as a replacement of the standard tk::canvas in rattleCAD (http://rattlecad.sourceforge.net/). Therefor I build a package cad4tcl which handles both tk::canvas and tkpath depending on the existance of tkpath in the current runtime.
> At first many thanks to Christian who supported me in bugfixing an important feature especially for rattleCAD.

Wow, now you are two people not living to far from each other building
CAD programs with TCL:
- Alexandru in Munich
- Manfred in Graz
Impressive work, congratulations !
Harald

rene

unread,
May 18, 2018, 3:24:43 AM5/18/18
to
Am Mittwoch, 24. Januar 2018 21:32:12 UTC+1 schrieb Christian Gollwitzer:
> It is used by some people, but the basic problem is that the original
> author (Mats Bengtsson) has passed away in 2008 and nobody has stepped
> up to push the development forward. Christian Werner from androwish has
> done some maintenance work on it, but other than that development is
> stalled.
>
> OTOH, it is pretty complete. Actually I would vote for the replacement
> of the Tk canvas in Tk 9 by tkpath.
>
Hello,

I have set a repository at http://chiselapp.com/user/rene/repository/rbc

It is the latest version from androwish plus "canvas image" plus man page.
I will do some development there. But direct tk integration seems a long way.


rene

Rolf Ade

unread,
May 18, 2018, 7:47:50 AM5/18/18
to
Harald Oehlmann <wort...@yahoo.de> writes:
> Am 16.05.2018 um 23:52 schrieb manfred.r...@gmail.com:
>> I use tkpath as a replacement of the standard tk::canvas in
>> rattleCAD (http://rattlecad.sourceforge.net/). Therefor I build a
>> package cad4tcl which handles both tk::canvas and tkpath depending
>> on the existance of tkpath in the current runtime.
>> At first many thanks to Christian who supported me in bugfixing an
>> important feature especially for rattleCAD.
>
> Wow, now you are two people not living to far from each other building
> CAD programs with TCL:
> - Alexandru in Munich

They used to be in Stuttgart. Did they moved?

Harald Oehlmann

unread,
May 18, 2018, 8:43:18 AM5/18/18
to
No, probably my fault....


0 new messages