Python Tutorials: Difference between revisions
From HacDC Wiki
Ubuntourist (talk | contribs) (Wayback machining) |
Ubuntourist (talk | contribs) (Wayback machining) |
||
Line 24: | Line 24: | ||
* [http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/ 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. Here is a good approach: http://code.activestate.com/recipes/438123/ And here is a [http://tkinter.unpythonic.net/wiki/ProgressBar progress bar]. | (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]. | ||
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. | 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. |
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:
- Rapid Application Development with Python and Glade
- A Beginner's Guide to Using pyGTK and Glade
- GTK
- Glade
Other resources of a more general nature (and of varying levels of idiocy):
- Official, but occasionally technical documentation
- PyGame
- Snake Wrangling for Kids
- Python for Fun
- PyBiblio
- How to Think Like a Computer Scientist
- A Byte of Python
- Dive Into Python
- QT from TrollTech
(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!