maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   TCL/TK make your own application without c++ (https://talk.maemo.org/showthread.php?t=67676)

michaelxy 2010-12-31 06:33

TCL/TK make your own application without c++
 
I was born with reduced brain-functionality :) But i found out, that TCL / TK 8.5 is available for maemo! Its a script Language an it seams easy to learn.

Yesterday i tried some TCL/TK application from the Internet with "wish ./test.tcl" and hey - there comes up the Application with a GUI. TCL can also run without GUI as pure console-scripts.

Even a complex application to control a Network-Device (avr-net-io) was running.

Here some Links I found:

http://wiki.tcl.tk/
http://www.self-tcl.de/ (German)

Games :)
http://wiki.tcl.tk/898

Runtime for Windows: ActiveState ActiveTcl
http://www.activestate.com/activetcl

One Book (older Version)
"Practical Programming in Tcl and Tk DRAFT, January 13, 1995"

http://www.beedub.com/book/tkbook.pdf

happy scripting

lardman 2010-12-31 10:18

Re: TCL/TK make your own application without c++
 
Personally I'd give Python + PySide (for Qt integration) a go, far more future-proof than tcl/tk imo, but to each his own :)

rambo 2010-12-31 16:12

Re: TCL/TK make your own application without c++
 
or python + hildon (gtk) if you happen to know GTK and not Qt.

michaelxy 2011-01-01 07:56

Re: TCL/TK make your own application without c++
 
Quote:

Personally I'd give Python + PySide (for Qt integration) a go,
May be - but you allways need a third device to make your QT GUI. With TCL/TK I can make the GUI ON the phone an test it immediately :p

Quote:

far more future-proof than tcl/tk imo, but to each his own
Sounds a bit philosophical.

vivainio 2011-01-01 08:59

Re: TCL/TK make your own application without c++
 
Quote:

Originally Posted by michaelxy (Post 908839)
May be - but you allways need a third device to make your QT GUI.

PyQt / PySide is just like TCL/TK - you write the script/program and run it, no compilation step needed.

TCL/TK is pretty marginalized at this day and age.

lardman 2011-01-01 11:12

Re: TCL/TK make your own application without c++
 
Quote:

Originally Posted by vivainio (Post 908852)
PyQt / PySide is just like TCL/TK - you write the script/program and run it, no compilation step needed.

TCL/TK is pretty marginalized at this day and age.

As vivainio says, Python is also a scripting language, so you can indeed develop on-device.

Python also has the added advantage of being mainstream (lots of examples on the 'net) and actively developed, and also PySide (which provides calls to interface between the Python scripting language and the Qt UI library) is supported by Nokia so has access to most (pretty much afaiu, work in progress) of the widgets and functionality that you can use from C++/Qt.

PyQt is another interface like PySide, and the two have almost identical class/object naming (so you can use PyQt examples without too many troubles), but I recommend PySide as it's the official Nokia version (and Nokia own Qt).

Slocan 2011-01-01 23:31

Re: TCL/TK make your own application without c++
 
And even better now, I'd suggest having a look at QML. You can also develop straight on the n900 (using qmlviewer to display it), and is a very easy language to pick up, and write UIs with.

Graham Cobb 2011-01-02 23:43

Re: TCL/TK make your own application without c++
 
I am a long-time TCL user and it is my main scripting language of choice but I wouldn't recommend anyone who doesn't already know tcl to bother learn it now.

Even I have created an app in Python and am developing one in QML rather than using tcl/tk.

pavlik 2011-02-25 22:58

Re: TCL/TK make your own application without c++
 
@michaelxy

where do I get TCL from for n900?
I use TCL a lot at work and it maybe worthwhile to have it instaled on mobile device in case I need to do something quick away from my desk.

michaelxy 2011-02-26 06:49

Re: TCL/TK make your own application without c++
 
Hi pavlik,

via:
http://maemo.org/packages/view/tcl8.5/

its in the Fremantle Extras repository:
http://wiki.maemo.org/Extras

Yes - its great to use TCL in Windows, Linux, Unix, and the N900 - but until now I am a very TCL beginner :-)

best regards
michael


All times are GMT. The time now is 00:32.

vBulletin® Version 3.8.8