Actions

Python Tutorials: Difference between revisions

From HacDC Wiki

(Python Resources)
 
(Wayback machining)
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
(Keven)  These might offer a reasonable starting point:
(Keven)  These might offer a reasonable starting point:


* http://glade.gnome.org/
* [http://www.linuxjournal.com/article/7421 Rapid Application Development with Python and Glade]
* http://www.linuxjournal.com/article/7421
* [http://www.linuxjournal.com/article/6586 A Beginner's Guide to Using pyGTK and Glade]
* http://www.linuxjournal.com/article/6586
* [http://www.gtk.org/ GTK]
* http://www.gtk.org/
* [http://glade.gnome.org/ Glade]


Other resources of a more general nature (and of varying levels of idiocy):
Other resources of a more general nature (and of varying levels of idiocy):


* Official, but occasionally technical documentation
* [http://docs.python.org/ Official, but occasionally technical documentation]
* http://docs.python.org/
* [http://www.pygame.org/ PyGame]
* PyGame
* [http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/ Snake Wrangling for Kids]
* http://www.pygame.org/
* [http://www.openbookproject.net/py4fun/ Python for Fun]
* Snake Wrangling for Kids
* [http://www.openbookproject.net/pybiblio/ PyBiblio]
* http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/
* [http://www.openbookproject.net/thinkcs/python/english2e/ How to Think Like a Computer Scientist]
* Python for Fun
* [http://ibiblio.org/g2swap/byteofpython/read A Byte of Python]
* http://www.openbookproject.net/py4fun/
* [http://www.diveintopython.org/ Dive Into Python]
* PyBiblio
* [http://trolltech.com/ QT from TrollTech]
* http://www.openbookproject.net/pybiblio/
* How to Think Like a Computer Scientist
* http://www.openbookproject.net/thinkcs/python/english2e/
* A Byte of Python
* http://ibiblio.org/g2swap/byteofpython/read
* Dive Into Python
* http://www.diveintopython.org/
* QT from TrollTech
* http://trolltech.com/


(Riley) However by far the best resource I used was:
(Riley) However by far the best resource I used was:


* http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/
* [http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/ Creating a GUI using PyGTK and Glade]


(Mark) Being able to open a file dialog is a key part of many GUI program-
(Mark) Being able to open a file dialog is a key part of many GUI program. Here is a good approach: http://code.activestate.com/recipes/438123/ And here is a [https://web.archive.org/web/20161129001536/http://tkinter.unpythonic.net/wiki/ProgressBar progress bar].
here is a good approach: http://code.activestate.com/recipes/438123/
And here is a progress bar: http://tkinter.unpythonic.net/wiki/ProgressBar


Between those two things, I have made many GUIs that are in front of
Between those two things, I have made many GUIs that are in front of analytical software tools that I have implemented in Python originally as command-line utilities.
analytical software tools that I have implemented in python originally
as command-line utilities.


The easiest place to start is the "simplest possible tkinter program" here:
The easiest place to start is the "simplest possible tkinter program" here:
http://tkinter.unpythonic.net/wiki/the_simplest_possible_Tkinter_program
http://tkinter.unpythonic.net/wiki/the_simplest_possible_Tkinter_program


Then go through the list of widgets here:
Then go through the list of widgets at [https://web.archive.org/web/20170502214437/http://tkinter.unpythonic.net/wiki/A_tour_of_Tkinter_widgets A tour of Tkinter widgets]. Grab the right version for your python installation (2.x or 3.x) and unpack it. Run it and you can click the "see code" button for any element.  It is a great earning tool, especially since it is all running in Python on your computer, too!
http://tkinter.unpythonic.net/wiki/A_tour_of_Tkinter_widgets
 
Grab the right version for your python installation (2.x or 3.x) and
[[Category:Useful_Info]]
unpack it- run it and you can click the "see code" button for any
element.  It is a great earning tool, especially since it is all
running in python on your computer, too!

Latest revision as of 23:57, 13 December 2017

From the HacDC Blabber list: Does anyone know of a good tutorial on GUI programming for complete idiots in Python?

(Keven) These might offer a reasonable starting point:

Other resources of a more general nature (and of varying levels of idiocy):

(Riley) However by far the best resource I used was:

(Mark) Being able to open a file dialog is a key part of many GUI program. Here is a good approach: http://code.activestate.com/recipes/438123/ And here is a progress bar.

Between those two things, I have made many GUIs that are in front of analytical software tools that I have implemented in Python originally as command-line utilities.

The easiest place to start is the "simplest possible tkinter program" here: http://tkinter.unpythonic.net/wiki/the_simplest_possible_Tkinter_program

Then go through the list of widgets at A tour of Tkinter widgets. Grab the right version for your python installation (2.x or 3.x) and unpack it. Run it and you can click the "see code" button for any element. It is a great earning tool, especially since it is all running in Python on your computer, too!