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
- a list of generated IDs for all controls (unique).
- a method
def NAME_OF_DIALOG(self,parent):
for each dialog found. They are "mixin" methods to use in yourwxDialog
constructor.
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.