Classic Python 2.5: A Coding Tutorial for a Dice Rolling App with GUI

Published: 13 March 2014
on channel: SHONNER 🏴‍☠️
55,402
like

This is a 2-hour Windows XP/7/10 exercise for Python 2.5 users to participate in. At the end of which, programmers will have a finished app of their own to experiment with. The purpose of this exercise is to learn by doing. Programming is learned when programs are typed in by hand. This allows for students to make their own mistakes along the way and learn how to correct them. Simply providing the source code for copy/pasting teaches nothing.

The next part continues at    • Classic Python 2.5: Let's Add an Abou...  

The softwares I'm using are the 32-bit versions of:
Python 2.5.4 http://www.python.org/download/releas...
PyQt 4.9.4 for Py2.5 https://sourceforge.net/projects/pyqt...
Eclipse Kepler 4.3.1 SR1 http://www.eclipse.org/downloads/down...
PyDev 3.3.3 https://sourceforge.net/projects/pyde...
Java 7 http://java.com/en/download/faq/java_...

The diceroll.pyd module needed for this project can be found at https://drive.google.com/file/d/0B3Ts... and will only work for the Windows environment using Python 2.5. If you are using another OS, or another version of Python, this video is not for you.

The reason why we are using a .pyd file for this exercise is to show a real-world programming situation you'll likely run into. Often times, you'll be part of a programming project where you don't know all the knowns involved. You just have to interface with other programs you don't have the code for.

Remember to relocate/reload your icon image in Qt Designer if you move your icon file later. I forgot to. Icons are so tiny.