You are not logged in.

#1 2008-09-01 21:49:38

sjg
Member
From: UK
Registered: 2007-02-10
Posts: 63

Is tcl/tk a dead end?

Hi all,

Have recently tried to learn to program, and so following good advice from this board tried to write an application I would actually use. I spend a lot of time writing papers in LaTeX, so have started to write a tex editor with bibtex reference handling. The program is now in a semi-useful state, and I can use it quite happily.

I wanted something could easily be made cross-platform, since at university I only have access to windows PCs. It was for this reason that I decided a scripting language like tcl would be a good fit.

I started work in tcl/tk and found it very intuitive. Tk does, however, look slightly dated and out of place next to my gtk apps (although I do not mind the way it looks). What bothers me more is that I cannot find many other projects using tcl/tk. I have tried to start again in pyGTK, but found it much more difficult to learn.

So I guess my question is - is tcl/tk a dead end? Let me know your thoughts!

Thanks

Offline

#2 2008-09-01 22:00:56

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Is tcl/tk a dead end?

TKInter is the only GUI toolkit that comes standard with Python, but I don't actually think very many projects use it (which is to say: in my opinion, yes it is dead -- I would never personally use it).

I don't care for pyGTK either. I've never used TK so I don't know how you define 'intuitive' vs 'difficult to learn', but if you want to use python I suggest wxPython, it makes more sense (to me, anyway).

Dusty

Offline

#3 2008-09-01 22:07:37

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Is tcl/tk a dead end?

I myself have quite a fondness for Ruby (incidentally, base distribution comes with Tk as well) and Qt, thus I fancy QtRuby. Maybe PyQt would be worth a shot (unless you're stuck on GTK)?

Offline

#4 2008-09-02 02:29:07

EnvoyRising
Member
Registered: 2008-08-08
Posts: 118

Re: Is tcl/tk a dead end?

+1 for QtRuby

However, be warned that documentation is next to none. There are tutorials for the basics, but (at least for me) when it comes to learning some of Qt's more abstract and advanced techniques, the only help you'll get is in the form of C++ documentation which isn't always easy to translate to ruby.

Also, as for as integrating with your other gtk apps, Qt, at least now, is still a viable option, thanks to the cleanlooks style which mimicks gnome's clearlook theme, or better yet, the gtk style which uses native gtk calls, but has to be installed seperately.

Offline

#5 2008-09-02 04:10:16

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Is tcl/tk a dead end?

Guess depends how you define "dead"

If dead end = no longer developed, then TK/Tcl is very alive
If dead end = few people use it and few have it installed, it's not far from dead.

Python's cool. *shrug* Just use what you find comfortable and does what you need.

Offline

#6 2008-09-02 16:54:57

sjg
Member
From: UK
Registered: 2007-02-10
Posts: 63

Re: Is tcl/tk a dead end?

Thanks for the responses. I will certainly have a look at wxpython and QtRuby.

in my opinion, yes it is dead -- I would never personally use it

If dead end = few people use it and few have it installed, it's not far from dead.

This is what I thought. I have had a look on google / sourceforge etc. and have only come up with a handful of apps using tcl/tk. Pity, as I have quite enjoyed learning it (although I don't know any other languages to make a comparison!). I am glad it is still undergoing fairly active development.

Just use what you find comfortable and does what you need

I guess this is what it comes down to. I don't harbour any ambitions to become a programming guru, so for my own use tcl is fine for this project. Will look at the other suggestions next time a feel the need to learn to code.

Thanks again,

Stewart

Offline

#7 2010-01-24 11:38:27

strykaas
Member
Registered: 2010-01-24
Posts: 1

Re: Is tcl/tk a dead end?

Hi !
A guy recently started developing a new GUI builder called PureTkGUI which generates tcl/tk code. I've tested it quite a bit and generates clean code.
What's more, it supports the latest themed tk 8.5 additions which makes tk look up-to-date compared to other gui toolkits. I've also heard it should be able to generate other languages in a not so distant future, such as python/tkinter, ruby/tk and perl/tk. It looks very promising.
http://sourceforge.net/projects/puretkgui/

Offline

#8 2010-01-25 11:54:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Is tcl/tk a dead end?

strykaas - please read the forum rules here, in particular the section dealing with Old Threads.

Closed.

Offline

Board footer

Powered by FluxBB