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

2nd request Tk 3.x to Tk 4.x conversion script

4 views
Skip to first unread message

Stan Brown

unread,
Jul 4, 1996, 3:00:00 AM7/4/96
to

Am I the only one with lot's of useful scripys that to convert ?
Somebody (who lnow more about the language) mus have done sone sort
of cnversion script right?

Thanks

--
Stan Brown st...@netcom.com 404-996-6955
Factory Automation Systems
Atlanta Ga.
--
Look, look, see Windows 95. Buy, lemmings, buy!
Pay no attention to that cliff ahead... Henry Spencer
(c) 1996 Stan Brown. Redistribution via the Microsoft Network is prohibited.

Bryan Oakley

unread,
Jul 8, 1996, 3:00:00 AM7/8/96
to Stan Brown

Stan Brown wrote:
:
: Am I the only one with lot's of useful scripys that to convert

?
: Somebody (who lnow more about the language) mus have done sone sort
: of cnversion script right?
:
: Thanks

I doubt it. The conversion doesn't lend itself to automation. I had to
convert by hand over 150,000 lines of code. Best thing to do is roll up
your sleaves and get busy.

--
Bryan Oakley, Software Engineer
Healthcare Communications, Inc.
oak...@healthcare.com

Frederic Bonnet

unread,
Jul 9, 1996, 3:00:00 AM7/9/96
to

Bryan Oakley wrote:
>
> I doubt it. The conversion doesn't lend itself to automation. I had to
> convert by hand over 150,000 lines of code. Best thing to do is roll up
> your sleaves and get busy.
>

For more info, there is a chapter in Brent Welch's "Practical Programming in
Tcl and Tk" about porting to Tk4.0. You will find there the main changes
between Tk3.6 and Tk4.0.

--
Frederic BONNET Eleve-Ingenieur de l'Ecole des Mines de Nantes
fbo...@irisa.fr Stagiaire IRISA - Projet Solidor

"Il ne faut jamais remettre au lendemain ce qu'on peut faire le surlendemain"
Oscar WILDE

Larry W. Virden

unread,
Jul 10, 1996, 3:00:00 AM7/10/96
to

However, there are some documents which attempt to help folk with the
conversion. I cam across a document by
James F. Carter <ji...@math.ucla.edu> called Gotcha's in Converting
tcl/tk 3.6 to 4.0 on the WWW (see
<URL:http://www.teraform.com/%7Elvirden/tcl-faq/part2.html> for a pointer),
the Tk 4.0 overview and Porting guide by J. Ousterhout (this one is
on http://www.sunlabs.com/ I believe), info from the changes files for
tcl and tk, and then ran across at least one thing that I had not
encountered in the previous items - that we were finding cases where
the default font we had seen under tk 3 was different under tk 4, causing
us to add the Helvetica Bold 120 font as an option.

I haven't seen much discussion of the changes needed to move from 4.0 to
4.1.
--
:s Larry W. Virden INET: lvi...@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

Robert Heller

unread,
Jul 10, 1996, 3:00:00 AM7/10/96
to

Bryan Oakley <oak...@healthcare.com>,
In a message on Mon, 08 Jul 1996 15:06:53 -0600, wrote :

BO> Stan Brown wrote:
BO> :
BO> : Am I the only one with lot's of useful scripys that to convert
BO> ?
BO> : Somebody (who lnow more about the language) mus have done sone sort
BO> : of cnversion script right?
BO> :
BO> : Thanks
BO>
BO> I doubt it. The conversion doesn't lend itself to automation. I had to
BO> convert by hand over 150,000 lines of code. Best thing to do is roll up
BO> your sleaves and get busy.

Some can be sort-of automated using editor macros. But you are right - it is
quicker to just use an editor and change things. I have discovered that if
the Tcl is properly written in the first place, 90% requires no changes. Mostly
the use of -geometry (for text and listboxes), and binding games accounts for
most of the changes.


--
\/
Robert Heller ||InterNet: Hel...@CS.UMass.EDU
http://vis-www.cs.umass.edu/~heller ||FidoNet: 1:321/153
http://netmar.com/mall/shops/heller /\

Neil Walker

unread,
Jul 11, 1996, 3:00:00 AM7/11/96
to

Hi

I've not really been paying attention to this one (arriving late to the game)
but has anyone mentioned Brent Welch's book yet? Chapter 33, "Porting to
tk4.0"
looks useful ...

Cheers
Neil


0 new messages