Hello!
I'm just beginning to learn Python and I would like you to recommend me any good tutorial. I have started with the http://www.pythonlearn.com/ and the http://hetland.org/writing/instant-python.html. I have found them very useful and I would like to continue learning. Furthermore, I would also like to start learning on programming interfaces with Python. I have just installed TkInter, can you suggest any good tutorial?
Cheers!

Dani

Recommended Answers

All 11 Replies

An oldy but goody (includes Tkinter):
http://bembry.org/technology/python/index.php

Tkinter reference:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/tkinter.pdf

Another tutorial source (uses graphics.py, a simplified wrapper for Tkinter):
http://webpages.cs.luc.edu/~anh/python/hands-on/index26.html

This online book does not touch graphics, but is rather thorough with Python:
http://learnpythonthehardway.org/static/LearnPythonTheHardWay.pdf

Swaroop C.H. has rewritten his excellent beginning Python tutorial for Python3
(Python2 version is still available too):
http://www.swaroopch.com/notes/Python_en:Table_of_Contents

"Dive Into Python" Mark Pilgrim's Free online book, novice to pro, is updated constantly, and has been rewritten for Python3 (check appendix A for Py2-to-Py3 differences):
http://diveintopython3.org/

I wanted to add a tiny advice here, that no book will ever replace the real experience of actual coding. So I would advice to choose a python project and carry it on while you read all these books and tutorials. Seeing things how they work in practice is real valuable knowledge.

Thank you so much! I am actually working on an easy Python project to watermark pictures (see http://www.daniweb.com/forums/thread295847.html). Now it is working as a command line program, and now I'll try to build a GUI for it using TkInter. Any advise will be welcome!

Cheers!

Dani

Thank you so much! I am actually working on an easy Python project to watermark pictures (see http://www.daniweb.com/forums/thread295847.html). Now it is working as a command line program, and now I'll try to build a GUI for it using TkInter. Any advise will be welcome!

Cheers!

Dani

Well if you look the easiest way to make GUI, I will advice EASYGUI, its very easy to use and comes with good documentation. Its not very sophisticated, but it covers all the basic needs for a GUI and looks prettier than TkInter.

http://easygui.sourceforge.net/

If you look for a sophisticated GUI , then wxPython is your best bet, it works like a charm for windows , macos and linux . But off course it will take longer time to learn it.

http://www.wxpython.org/

Now there are other alternatives , like pyQt which I hyave heard it works like a charm fora the big 3, pyGTK which works great for windows and linux but on macos it uses X11 which is abit ughly and confusing for the average mac user.

And of course there are many other.

For instance if you go jython route you will use Swing and the very powerful and fast JAVA2d, if you go ironpython , winforms, and several other GUIs.

Tkinter, works , but is abit outdated as a GUI. MEaning that there are both easier and better alternatives. But it still a very valid choice.

Its totally up to you.

I would say that the two most popualr choices are tkInter and wxPython.

The nice think about Tkinter is its small footprint, and that you can easily extend it. For instance modules like easygui.py and graphics.py use Tkinter under the hood, so they look very much like tk. Tkinter has received a large number of new widgets with the tix and ttk extensions in Python31. Yes, Tkinter is alive and well!

Tkinter widgets look much better on Linux and the Mac OS, than on Windows.

GUI programming adds a certain complexity. Look into the "Python GUI Programming" thread right here on DaniWeb:
http://www.daniweb.com/forums/thread191210.html
So you can compare some of the different GUI toolkit syntax.

Thank you all folks for you advises!! I'll try to get the best of them.

Cheers!

Dani

The nice think about Tkinter is its small footprint, and that you can easily extend it. For instance modules like easygui.py and graphics.py use Tkinter under the hood, so they look very much like tk. Tkinter has received a large number of new widgets with the tix and ttk extensions in Python31. Yes, Tkinter is alive and well!

Tkinter widgets look much better on Linux and the Mac OS, than on Windows.

GUI programming adds a certain complexity. Look into the "Python GUI Programming" thread right here on DaniWeb:
http://www.daniweb.com/forums/thread191210.html
So you can compare some of the different GUI toolkit syntax.

Hmm I did not know that Tkinter is so actively developed, you opened my eyes, thank you. I will investigate it abit further.

Besides the python documentation documentation, what other places there are out there that excel at teaching tkinter with python ?

I will investigate this forums as well, as it appear to offer some good information on tkinter. This is the best python forum I have ever registered, thank to guys like you vegaseat. Continue the great work.

A good site is the www.thenewboston.com they teach you more than one language you can pick from about 10. And they have videos for you to watch so you can see what he is talking about it helps alot videos

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.