Nightly Beta with wxPython Code Generation

Well it has been too long. :) We have released a beta that has wxPython code generation. This has been a feature requested for quite some time. Please test the wxPython code generation and report any bug in the issue tracker. Grab it here. Enjoy.

23 Responses to “Nightly Beta with wxPython Code Generation”

  1. Mike Bryce Says:

    Thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you!
    I have spent days trying to find a way to get some decent forms created without doing it manually. I finally stumbled across wxformbuilder and created my whole interface in a couple of hours. Then I realised that it generated C++ only! I was using python. How dumb am I? I tried to use the xrc code, but I found that really difficult to get my head around and it doesn’t seem to take much work off my hands compared to just creating forms manually.
    So anyway, I started it up again today to have another go and it tells me there is an update. Lo and behold, the update includes Python code generation! I will test it now, but even if it only half works it will still be very useful.
    Keep up the great work everyone!
    Mike

  2. dewkira Says:

    thanks,

    i’ve always dreamed of using wxpython + wxformbuilder

    now it came true.

    thanks again

    dewkira

  3. Jake Says:

    well done!excellent!

  4. pelle Says:

    This is the best news i’ve had in a long time. You people deserve medals.
    This will most certainly boost my contribution to the open source community, since i can now do so much more, in much less time.
    Lots, and i mean lots, of thumbs up!
    BTW it’s working really great if you ask me…

  5. mentat Says:

    Can someone please direct me to a tutorial or sth that explains how to use the generated code in python? (python newbie here, c++ veteran)

    Thanks, now I can try that python thing :)

  6. RJP Computing Says:

    @mentat

    On the side of this website are links to the documentation.

    You just have to select ‘Python’ from the “Project->code_generation” setting. This is the same way you select XRC or C++.

  7. Mike Bryce Says:

    For Mentat,
    All you need to do is subclass the generated python code (each form is a class) and its event handling methods. You shouldn’t have to touch the generated files. I think this is similar to the C++ way yes?
    Eg.

    from mygeneratedfilename import *
    class mymanuallycodedclass(mygeneratedwxformbuilderclass):
    def __init__ (………)
    mygeneratedwxformbuilderclass.__init__(……..)
    def handlepresssomebutton(self, event):
    # This event is defined in generated code as just event.Skip()
    # This method overrides it and you tell it what to do here.

    frame=mymanuallycodedclass()
    frame.Show()

  8. Charles Says:

    This is fantastic. Thanks!

    I was on the verge of switching to Qt/PyQt because couldn’t find a wxPython designer I liked.

    Charles

  9. Alan B Says:

    A great step in moving the creation of Python desktop applications forward. XRC files are better than nothing but having to reference all the controls and still build the UI from the XRC to an extent defeats the purpose. This gets us closer to how something like a WinForms application works in Visual Studio on Windows, i.e. closer to RAD.

  10. Jose Almeida Says:

    Thanks for the wxPython feature. It will make alot of developers happy!
    You just made it a lot easier to develop in python in windows!
    The open source community thanks you!

  11. Jon Wilson Says:

    Many thanks for a great gui designer and the Python class generation puts this product into a different league. It’s easy to use and makes my job a great deal easier. Thank you.

  12. Ryad E. Says:

    Thank you very much.
    You guys made real good software. wxFormBuilder with native wxPython-support improves my productivity by saving a lot of time.
    Good Work!
    Thanks from Berlin.

  13. Simosito Says:

    There are some issues in the python code styling, as I explain in a bug report ( http://issues.wxformbuilder.org/index.php?do=details&task_id=429 ), still it’s a great thing to have python code generation!

  14. jiakuan Says:

    Great work!

    I have been using wxFormBuilder to create GUI for my software, and I had to use xrc mechanism to initialize GUIs, I found it was a little slow when loading resources from XRC files. I guess the generated wxPython code should have better performance at run time.

    Thanks very much.

  15. mark Says:

    I found the formbuilder nice to use, but it only supports a limited subset of wxwidgets. For example wxWizard and wxWizardSimplePage is not supported, when it may even be easier to support than wxNotebook. Because it is a layout item, I can’t use wxCustomControl.

  16. RJP Computing Says:

    @Mark,

    Make an issue for this. http://issues.wxformbuilder.org

  17. Knappis Says:

    Great work!

    Any chance you could make a Mac OS X version of the beta available?

    Thanks and keep up the good work.

  18. RJP Computing Says:

    @Knappis,

    Well the core developers don’t own or have Mac’s so we wait for volunteers. There usually is not to much to do, just build. Can you help?

  19. Lei Si Says:

    Many thanks to your great wxFormbuilder!I have used it to design my user interface in several hours. Thanks again to your great work!

  20. Marfi Says:

    @Knappis,
    I’ve (hopefully) managed to fix wxFB on Mac OS X (at least for wxWidgets 2.8.10) so watch the SVN - the fixed version will be available soon!

  21. Anonymous Says:

    Thank You, this is real cool.
    I am tired to use wxGlade - this is really shit against wxFormBuilder

  22. Rob0 Says:

    Thanks for the wxPython support. Great stuff! I’m really glad I found this, I almost had to go the QT route - glad I can easily put together a python GUI with a tool that will support more options than pythoncard.

  23. aeris Says:

    Thank You, Great Work!!!

Leave a Reply