Python's built-in GUI library, Tkinter, is a great way to get started in the world of GUI programming. You will find a number of useful GUI elements (widgets) that you can use with your programs. In this tutorial, we will take a look at how to create a program that creates a simple To-Do list. It demonstrates how to set up a GUI using Tkinter, call a function when a button is clicked, how to use lists, and how to use the Grid Geometry Manager.
Tic-Tac-Toe is one of the earliest strategy games that children learn. It has few rules that are easy to grasp which makes it an excellent game to use to learn how to program in Python. In this tutorial, I will walk you through the process of making the game in a step-by-step fashion. This tutorial presupposes that you have at least a passing familiarity with Python concepts such as loops, functions, and lists.
If you haven't read the introduction to this Interactive Fiction project in Python, or Part I, or Part II, now would be a good time to do so! In our last installment, we learned how to use Python classes to create rooms in our virtual world that we could move around. In this installment, we are going to use the same feature, classes, to create items in our game that we can interact with.
“It's a Kind of Magic”, is not just an underrated Queen album and great quote from the classic film, Highlander, it is also most people's attitude towards technology. While most people these days are comfortable using whatever technology they find in front of them, so few are capable of actually utilizing that technology to truly meet their individual needs.
This school year I am teaching a brand new grade 11/12 elective computer programming course at my school here in Tokyo. We have finished two months of classes and I wanted to share and reflect on what we've done, why we've done it, and where we're going.
Scratch, from MIT, is a fantastic free online learning environment that lets students learn the basics of computer programming by making games, animations, and other interactive programs. There are a lot of great video tutorials online, for example:
Computer programming has been described as the new literacy of the 21st century. It is an art form that requires students to utilize logic and higher level thinking skills such as analysis, synthesis, and application.
This one is from the "We don't need no stinking computers" file.
At long last, my TEDxTokyoTeachers presentation is available for your viewing pleasure. :)
I have to admit that I was pretty nervous - a true rarity as I almost never get nervous about anything. I am glad that I was able to get my message out, make it through almost all of my lines, and even get a laugh or two.
Recent blog posts
- Simple Python Game Tutorial Using Classes
- Video Tutorial: Python Spacewar Game
- Video Tutorial: Python To-Do-List (GUI Version)
- Video Tutorial: Simple Space Invaders Clone
- Video Tutorial: Python Functions with Turtle Graphics
- Video Tutorial: Python Guessing Game (GUI Version)
- Global Codeathon Scratch Tutorials
- Video Tutorial: A Simple Python Turtle Graphics Game
- Video Tutorial: Tic-Tac-Toe in Python
- In Favor of Standardization in Ed Tech