Home arrow Python arrow Designing a Calculator in wxPython

Designing a Calculator in wxPython

wxPython is a library that makes it easy for Python programmers to build graphical user interfaces. Over the past few weeks, you have seen some articles covering this library. This week, you will learn how to create a simple but useful application with wxPython.

  1. Designing a Calculator in wxPython
  2. The Plan
  3. Creating the Layout
  4. Wiring It All Together
By: Peyton McCullough
Rating: starstarstarstarstar / 17
July 13, 2005

print this article




This article assumes that you have only a little bit of skills with wxPython. You might want to read A Look at wxPython, Organization in wxPython and A Close Look at a Few wxPython Controls before reading this article, as they cover some material you will need to know to get the most out of it. This article covers the basics of designing a useful application in wxPython, thus  gluing knowledge together to build something functional.

I find myself using Microsoft's Calculator program frequently. It's a very useful utility, even if it is extremely simple. Let's try to make a calculator similar to Microsoft's Calculator in Python. It's challenging to create, though it's not so tough that it requires us to go out of our way to learn anything major. We'll just try to create a simple copy. The scientific features of Microsoft's Calculator require other Python libraries, and the purpose of this article is to teach wxPython, not math.

>>> More Python Articles          >>> More By Peyton McCullough

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Python Big Data Company Gets DARPA Funding
- Python 32 Now Available
- Final Alpha for Python 3.2 is Released
- Python 3.1: String Formatting
- Python 3.1: Strings and Quotes
- Python 3.1: Programming Basics and Strings
- Tuples and Other Python Object Types
- The Dictionary Python Object Type
- String and List Python Object Types
- Introducing Python Object Types
- Mobile Programming using PyS60: Advanced UI ...
- Nested Functions in Python
- Python Parameters, Functions and Arguments
- Python Statements and Functions
- Statements and Iterators in Python

Developer Shed Affiliates


Dev Shed Tutorial Topics: