Python needs to support combined files
Description:
In C++, having one class per file is the standard practice. In Python, however, modules often contain multiple classes, as well as functions. We already support a combined file for XRC, so it would make sense to support a combined file for wxPython as well.
Note that folders already have a folder_python_combined_file though I don't think support for this has been implemented yet (it should). That would be the ideal way to handle multiple modules with each folder being a module with as many forms/classes as the user wants in that module.
We only allow the user to add code to the end of the file, so this does mean that a user will need to create an inherited class in order to add event handlers.
The more I think about this, the less I like it. Because we also can embed image data in the file, this could result in some extremely large files. It also means the user cannot just extend a fornm by adding their event handlers at the end -- they will be forced to subclass each form that requires event handlers that can't be done with a lambda statement. The final issue is any custom ids. Our code is currently setup to process one form at a time, and there is no sharing between forms. It's going to be a bit complicated to pull out all the ids and all the embedded images to put them at the top of the module, and then have the conditional code for each from that knows whether or not to add them as part of the class construction.
Let's back out the properties for now, and postpone this to 1.x assuming we get requests to do it.
Postponed to 1.x now that the properties are hidden.