Historical Note

This page was migrated from the original p-nand-q.com site which was last updated in 2015. The content has been preserved exactly as it was, with only formatting updated for modern browsers. Over the coming days and weeks, the content will be reviewed and may be updated for accuracy and relevance. If you find any issues, please contact me.

Creating wxPython scripts from Win32 rc files

pyrcconv is a small tool that allows you - on win32 - to read a Win32 resource file and generate a wxPython script from it.

Usage

Just start the tool and load in a RC file (not a binary RES file) and save it as a python script. The generated script will have

Controls will have readable names, i.e. an IDC_READ_ONLY will be converted to a member self.m_btReadOnly and so on.

Download

You can download the installer here. It is a self-extracting installer that includes the full sourcecode.

IMPORTANT NOTE: you do need NAPYR to run pyrcconv.