#143 Extracode not generated

closed
nobody
2015-12-30
2009-09-12
L.Marcoux
No

If you add extracode in a widget but there is no extracode for top-level class, the extracode will be ignored. (re py_codegen.py line 658...)
Workaround check the extracode checkbox in the top-level container, add an empty line.

Discussion

  • Alberto Griggio

    Alberto Griggio - 2009-09-18

    Hello,
    can you post a .wxg file that shows the problem? I'm not able to reproduce it...

     
  • L.Marcoux

    L.Marcoux - 2009-09-23

    Here it is
    Config : xp sp3
    Python 2.5
    wxPython 2.8
    wxGlade version from depot as wxglade-d1260418a762.zip

    To reproduce:
    Create a new wxGlade application
    Add a custom widget name: wx.lib.filebrowsebutton.DirBrowseButton
    Add extra code for the widget:
    <<
    import wx.lib.filebrowsebutton

     
  • L.Marcoux

    L.Marcoux - 2009-09-23

    No extra code generated in py module

     
  • Carsten Grohmann

    Thanks for the file test. The current release added proper extra code:

    begin wxGlade: extracode

    import wx.lib.filebrowsebutton

    end wxGlade

    Feel free to reopen the bug if it still occurs using a current wxGlade release.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks