Programming language, which one
Moderators: snarkout, Patrick, dann
Programming language, which one
Hi guys,
I am keen to resume my little start in prgramming (few years ago in basic C (and a number of years ago before that in BASIC (when i was 9 or so)))
I am not sure which language to focus on. I have started looking into Perl and Python. Both seem sound, although I think I might be leaning towards Python.
I have preference to a language that its best for GUI programming. So far being using the Tk library with both Python and Perl.
Any other suggestions ??
I am keen to resume my little start in prgramming (few years ago in basic C (and a number of years ago before that in BASIC (when i was 9 or so)))
I am not sure which language to focus on. I have started looking into Perl and Python. Both seem sound, although I think I might be leaning towards Python.
I have preference to a language that its best for GUI programming. So far being using the Tk library with both Python and Perl.
Any other suggestions ??
Linux david 2.6.29.3-desktop-1mnb #1 SMP Thu May 14 15:19:40 EDT 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Distro: Mandriva 2009.1
Distro: Mandriva 2009.1
Perl is a great language to learn, especially with regards to scripting and integration with various utilities, services, and passing information between programs.
TCL/Tk is not too difficult to learn, but the applications can be a bit slim. More gui development is done these days in gtk or qt. So if you know C, jumping into gtk or QT may not be that difficult.
I am not a developer, so take my advice loosely.
TCL/Tk is not too difficult to learn, but the applications can be a bit slim. More gui development is done these days in gtk or qt. So if you know C, jumping into gtk or QT may not be that difficult.
I am not a developer, so take my advice loosely.
Thanx Dann.
The tick in the box for Python ATM is the documentation; far superior to Perl, its like Gentoo documentation, very well laid out.
I would of thought GTK/QT would be way out of my league
But I may have a look into it on your recommendations
Tk may be fine for my simple abilities.
The tick in the box for Python ATM is the documentation; far superior to Perl, its like Gentoo documentation, very well laid out.
I would of thought GTK/QT would be way out of my league
But I may have a look into it on your recommendations
Tk may be fine for my simple abilities.
Linux david 2.6.29.3-desktop-1mnb #1 SMP Thu May 14 15:19:40 EDT 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Distro: Mandriva 2009.1
Distro: Mandriva 2009.1
My brief foray into tcl was mainly through this book: Practical Programming in Tcl and TK. But definetly check out the tcl/tk wiki, especially the <a href="http://wiki.tcl.tk/11483">getting started</a> section. Somewhere in there is a stand-alone tutorial/testing application written in tcl/tk. Really nice tool: <a href="http://www.msen.com/~clif/TclTutor.html#install">TCL Tutorial</a>.
Thanx dann
I found a series of 14 or so 10 mins videos for learning Tk/Python. Guy tries to make it funny too. It really gets you hooked and seem to learn faster.
I'll check out your links too.
I had a little look at PyGTK and 'DAMN' it looks a little more 'complicated' then Tk. Maybe if there were video tutorials it wouldn't be so tough
I found a series of 14 or so 10 mins videos for learning Tk/Python. Guy tries to make it funny too. It really gets you hooked and seem to learn faster.
I'll check out your links too.
I had a little look at PyGTK and 'DAMN' it looks a little more 'complicated' then Tk. Maybe if there were video tutorials it wouldn't be so tough
Linux david 2.6.29.3-desktop-1mnb #1 SMP Thu May 14 15:19:40 EDT 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Distro: Mandriva 2009.1
Distro: Mandriva 2009.1
Take a look at some of the Python Glade tutorials to make PyGTK a little easier. Personally I always use wxPython, because it's cross-platform - it renders in Gtk on Linux.DaveQB wrote:Thanx dann
I found a series of 14 or so 10 mins videos for learning Tk/Python. Guy tries to make it funny too. It really gets you hooked and seem to learn faster.
I'll check out your links too.
I had a little look at PyGTK and 'DAMN' it looks a little more 'complicated' then Tk. Maybe if there were video tutorials it wouldn't be so tough
- CptnObvious999
- Posts: 798
- Joined: Fri Jun 03, 2005 7:54 pm
- Location: Maryland
- Contact:
wxPython uses not only GTK but can also work on Windows and Mac (I believe). I personally prefer wxPython although I havn't had much time to use it. I havn't tried PyGTK yet. I have used Tcl/Tk but it was to basic and didn't contain all the nice widgets and event handling wxPython does.DaveQB wrote:ok, thanx mrben
So PyGTK and wxPython are totaly different even thought they both use GTK and Python ??
As for which you should learn I'd go with Python (obviously since the rest of my post is on it
Thanx CptnObvious999
I am thinking along the same lines as you; the documentation on Python is far superior then Perl.
As for wxPython. I had a look into it, trying to find a good tut. And man it looks way more complicated then Tckinter. Might be able to do more, but jus ta simple window was twice the lines of code.
Need a video tutorial for it like Tk has
I am thinking along the same lines as you; the documentation on Python is far superior then Perl.
As for wxPython. I had a look into it, trying to find a good tut. And man it looks way more complicated then Tckinter. Might be able to do more, but jus ta simple window was twice the lines of code.
Need a video tutorial for it like Tk has
Linux david 2.6.29.3-desktop-1mnb #1 SMP Thu May 14 15:19:40 EDT 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Distro: Mandriva 2009.1
Distro: Mandriva 2009.1
Correct - under Linux it renders in GTK, but under Windows and Mac it renders in the native widget sets.CptnObvious999 wrote:wxPython uses not only GTK but can also work on Windows and Mac (I believe).
It does take a bit of getting used to, and the documentation is not as sparse, but the documentation for wxWidgets (the C++ library upon which it is based) is excellent and 95% of the time can be converted across to Python.
However, for 'simplicity' Glade is probably going to be easier for you.
For Glade: http://primates.ximian.com/~sandino/python-glade/ (Glade allows you to build apps visually, thus easier than Tk)DaveQB wrote:Oh 'glade' is simpler to learn then Tk ??? So far, following these video tutorials, Tk looks simple as.
Hows Glade V Tk then ??
Any good links for wxPython for beginners ??
For wxPython: a very basic tutorial is at http://www.wxpython.org/tutorial.php
There is also some stuff on the IBM Developworks site IIRC.
Python / Tk ... I haven't used it them ... I then to be a PHP and Perl guy.
I find PHP to be incredible powerful especially some of the new features in PHP5. If you know C, Perl/PHP will be a fine option.
If you know BASIC, you could go with SmallBasic (http://smallbasic.sourceforge.net/) but why would you want to still use BASIC.
I find PHP to be incredible powerful especially some of the new features in PHP5. If you know C, Perl/PHP will be a fine option.
If you know BASIC, you could go with SmallBasic (http://smallbasic.sourceforge.net/) but why would you want to still use BASIC.