Could you please re-submit on Github?
https://github.com/wxGlade/wxGlade/issues

Did you try "Code to be inserted before" and "Code to be inserted after"?