Reply
Thread Tools
speednut's Avatar
Posts: 75 | Thanked: 82 times | Joined on Feb 2008 @ Silicon Valley
#1
I'm attempting to elevate my skills from "can't code my way out of a wet paper bag" by learning Python. I've programmed before in fortran, pascal, and assembly, but that was decades ago...

I'm using Downey's book Think Python - How to think like a computer scientist which is very helpful, but I need Tcl/tk and Tkinter installed to follow his examples. Since my N810 is with me all the time, I figured it would be handy to learn/code/debug on this device when I have the few spare cycles, but it seems from searching that the Maemo version of Python has these features stripped out of it.

I was wondering if it would be possible for me to add in the Tcl/tk and Tkinter functionality or do a recompile so I can get it working on my N810? Or would I simply be just descending deep down into dependency hell and should instead use a functional PC as time permits, finish the lessons in Downey's book, then move on to learning pyqt or pyside implementations?
 
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#2
It's a python book that needs tcl?

GET A NEW BOOK. Seriously.
 

The Following User Says Thank You to zerojay For This Useful Post:
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#3
For what it's worth, I'd recommend not touching TCL in any way shape or form. Coding can be a bit of a hill, sure, but you'll get there in the long run, and python is syntactically a fairly easy language to get a handle on.

PyQt is also a great set of stuff to play with, and results are easy to come by. It's a bit intimidating to start with, but there are plenty of resources on the net about both python and Qt.

I've always been a fan of teaching myself things. Learning by experimentation isn't for everyone, but it's certainly a valid method of learning, and learning to teach yourself things means you don't get stuck anywhere near as easily.

I'd also be more than happy to mentor you a bit about either myself if you want on IRC. I'm on freenode (#maemo, #mer and everywhere else) as w00t.
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.
 

The Following User Says Thank You to w00t For This Useful Post:
f(x)'s Avatar
Posts: 98 | Thanked: 26 times | Joined on Sep 2009
#4
This is one of the most useless thing to think of learning it.
Try this: http://www.diveintopython.org/
for pyqt:
http://www.cs.usfca.edu/~afedosov/qttut/
http://lateral.netmanagers.com.ar/stories/BBS47.html
http://qt.nokia.com/doc/qtopia2.2/ht...art1index.html
http://pages.cpsc.ucalgary.ca/~brosz...ner/index.html
__________________
Please don't consider any given "Thanks" by this user as a positive sign of grateful; as a leak of giving "-Thanks" is a leaked feature here. You might be rewarded by meaningless "Thanks" by this user.
-Thanks for your understanding
 

The Following 2 Users Say Thank You to f(x) For This Useful Post:
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#5
Do you mean useful?
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Capt'n Corrupt's Avatar
Posts: 3,524 | Thanked: 2,958 times | Joined on Oct 2007 @ Delta Quadrant
#6
I would also consider learning how to properly engineer software rather than just learning to program (write code). There's a very large distinction, and it's better to learn good design habits early than have to reshape patterns later.

}:^)~
 
f(x)'s Avatar
Posts: 98 | Thanked: 26 times | Joined on Sep 2009
#7
No useless
__________________
Please don't consider any given "Thanks" by this user as a positive sign of grateful; as a leak of giving "-Thanks" is a leaked feature here. You might be rewarded by meaningless "Thanks" by this user.
-Thanks for your understanding
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#8
Unfortunately many mathematics/engineering type apps are blessed with a Tcl/Tk GUI.

I would be tempted to learn the appropriate GTK+ stuff, and substitute, or just stick to the command line like real (mechanical) engineers do!
 
speednut's Avatar
Posts: 75 | Thanked: 82 times | Joined on Feb 2008 @ Silicon Valley
#9
Thanks for the feedback, but I think I need to clarify further...

I have next to zero experience with OOP and zippo with any GUI development (my only software development has been in the CLI). I've got to be able to walk before I can run!

I have multiple Python books that I started to read, but the one I listed in my original post is so far the easiest for me to get started with.

@f(x), thank you for the links, but the very first line about the book is "Dive Into Python is a Python book for experienced programmers.". The other links are well beyond my current skills.

As a introduction learning exercise of a GUI development, is Tcl/tk really that flawed?
Yes, of course I want to move on to using Qt as that's my end goal. I already have several utilities I want to create to run on my future N900.

Regarding my original question, it sounds like a resounding NO to attempting to install Tcl/tk onto a N810, correct?

@Capt'n: That makes perfect sense. Can you point me in the right direction to read more?

Cheers!
 
f(x)'s Avatar
Posts: 98 | Thanked: 26 times | Joined on Sep 2009
#10
Originally Posted by speednut View Post
@f(x), thank you for the links, but the very first line about the book is "Dive Into Python is a Python book for experienced programmers.". The other links are well beyond my current skills.

As a introduction learning exercise of a GUI development, is Tcl/tk really that flawed?
Yes, of course I want to move on to using Qt as that's my end goal. I already have several utilities I want to create to run on my future N900.
The first link was going to speed your learning process.
I was on rush to post and go, so I forget the most important thing that 99% of tutorials/guides or even books forget to mention it.
It is a language reference (For lang & Libs/API)
You can get it from here: http://www.python.org/doc/

Try also these links (See which of them fits you more):
http://www.poromenos.org/tutorials/python (Learn python in 10min then after that try few examples/write something basic -> jump to -> Dive into basic [The same goes for below links too])
http://pytut.infogami.com/
http://www.sthurlow.com/python/ (This is too much basic [looks easy to understand])

About the GUI part, trust me you will never use Tkinter and don't even bother yourself to learn it because you will be wasting your time. As I said go with Qt or GTK from the beginning. Both of them providing you tools to design your user interface with easy programs (Qt Designer & Glade).
Just check this out, http://www.cs.usfca.edu/~afedosov/qttut/ (So many pictures here , probably it will be easy for you)

About your skills, don't judge before you try reading them (2~3 pages before deciding)

That's it

Good luck with python
__________________
Please don't consider any given "Thanks" by this user as a positive sign of grateful; as a leak of giving "-Thanks" is a leaked feature here. You might be rewarded by meaningless "Thanks" by this user.
-Thanks for your understanding
 

The Following User Says Thank You to f(x) For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:39.