#22 Fix for C++ generating duplicate event handlers

Development Version
closed
None
5
2013-01-07
2010-09-10
Consultuning
No

Patch to prevent the duplicate event handlers generated in cpp_codegen.py

Discussion

  • Hi,

    Could you add a short example how to reproduce, please?

    Thanks,
    Carsten

     
  • I tried to reproduce the bug triggered this patch. I did 3 tests with 1 widget:
    1. one event handler
    2. two event handlers
    3. one event handler for two different event

    But I couldn't reproduce the bug. Thereby I won't apply the patch.

    Thank you for contributing to wxGlade.

    Carsten

     
    • status: open --> closed
    • milestone: --> Development Version
     
  • Consultuning
    Consultuning
    2013-01-07

    Carsten, this was a long time ago and I don't remember the exact sequence needed to recreate the problem. I just recall being related to generating twice the <% ... %> tags in header files. Looking at the patch seems that is preventing exactly that. Note that the generated .cpp code was correct.

    I'd keep around the patch just in case, if you're the maintainer it will solve the problem if someone else reports it again. Or perhaps next time I use the wxGlade package I'll see it happening again.

     
  • Hi Consultuning,

    Am Montag, 7. Januar 2013 schrieben Sie:

    I'd keep around the patch just in case, if you're the maintainer it will
    solve the problem if someone else reports it again. Or perhaps next time I
    use the wxGlade package I'll see it happening again.

    I'll keep the patch in mind and I would apply it, if you and someone else
    reports the problem again. For urgent cases I would provide a bugfix release
    of wxGlade too.

    Regards,
    Carsten