wxPython

wxPython: All about Menus

Menus are ubiquitous. They’re in almost all desktop programs. You use them for editing preferences or configuring your program. In wxPython, there are several menu options to choose from. The most familiar is probably wx.Menu. But there are are popup menus and a pure Python implementation known as FlatMenu. We will just be covering wx.Menu […]

wxPython: All about Menus Read More »

wxPython Project Phoenix Documentation Beta Released

The wxPython project’s Phoenix release is slowly coming along. Phoenix is the codename for the new wxPython that will support both Python 2.x and 3.x. Anyway, Andrea Gavana has put together some autogenerated documentation using Sphinx on top of Doxygen. You can read about the announcement including any known issues on the wxPython mailing list.

wxPython Project Phoenix Documentation Beta Released Read More »

ANN: MediaLocker – A wxPython App to Track Your Media

Background ================ This is the first release of a real project that I’ve been involved in. I had written an article last month that inspired Werner Bruhin to want to take it and make it into a demonstration program for new wxPython programmers in how to do MVC and CRUD while interfacing with a database.

ANN: MediaLocker – A wxPython App to Track Your Media Read More »

Improving MediaLocker: wxPython, SQLAlchemy, and MVC

This blog ran an article about wxPython, SQLAlchemy, CRUD and MVC earlier this month. The program that we created in that post was dubbed “MediaLocker”, whether or not it was explicitly stated as such. Anyway, since then, I have received a couple comments about improving the program. One came from Michael Bayer, one of the

Improving MediaLocker: wxPython, SQLAlchemy, and MVC Read More »

wxPython and SqlAlchemy: An Intro to MVC and CRUD

In this article, we will be creating a program to store our personal books or perhaps just the books you’ve read. It will demonstrate how to combine wxPython and SqlAlchemy, a SQL Object Relational Mapper (ORM). This program will also give you an introduction to the model-view-controller (MVC) and “create, read, update and destroy” (CRUD)

wxPython and SqlAlchemy: An Intro to MVC and CRUD Read More »

wxPython: New Widget Announced: XLSGrid

Recently, Andrea Gavana, developer of the agw library in the wxPython code base, released his newest widget: XLSGrid. It’s purpose is to faithfully reproduce the appearance of a Microsoft Excel spreadsheet (one worksheet per every instance of XLSGrid). This widget is based on wx.grid.PyGridTableBase and wx.grid.PyGridCellRenderer and requires xlrd. Andrea also recommends using Mark Hammond’s

wxPython: New Widget Announced: XLSGrid Read More »

wxPython: Get the Event Name Instead of an Integer

There was a recent post on StackOverflow that I thought was interesting. It asked how to get the event name from the event object, such as EVT_BUTTON, rather than the event’s id number. So I did some investigation into the subject and there is nothing builtin to wxPython that does this task. Robin Dunn, creator

wxPython: Get the Event Name Instead of an Integer Read More »