1) Add an Imports tab to the CW Properties that lets you specify your own imports statements to be placed after the generated "import wx" statement.
2) Add an Events tab to the CW Properties that looks like the existing Events tab on a regular widget but where the entries are blank and where there is provision to add custom event names and handlers.
Justification:
The lack of these two features means that you have to edit the generated wxGlade Python code file to put them in manually. I prefer not to touch these files and make modifications in a file containing classes derived from the generated files.
This feature request was briefly discussed on the mailing list on 03/12/2006.
Logged In: YES
user_id=375945
Originator: NO
Hello,
as for the imports, the new "extracode" property should solve this. See:
http://wxglade.sourceforge.net/hg/wxGlade/rev/bf5947e22cb5
for a quick description
With revision 0.8.0a10 there are multiple code properties. In "Code to be inserted after", you can register event handlers.
In a later version, I will add also the blank event entries (not only for custom widget but for all).