Share

wxGlade

Code

Programming Languages: Python

License: MIT License

Show:

What's happening?

  • Comment: extracode on the same line

    I checked with the last available zip version wxglade-d1260418a762.zip Now an extracode line without linefeed is not generated in python code.

    2009-09-23 11:24:31 UTC by lmarcoux

  • Comment: Extracode not generated

    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: >.

    2009-09-23 11:12:42 UTC by lmarcoux

  • Comment: extracode on the same line

    Hello, what version of wxGlade are you using? 0.6.3? That's rather old and not maintained anymore (I should probably just remove it from sourceforge...) Would it be possible to check out the latest version in the mercurial repository at: http://bitbucket.org/agriggio/wxglade/ and try with that one? Thanks!

    2009-09-18 09:41:45 UTC by agriggio

  • Comment: Extracode not generated

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

    2009-09-18 09:38:34 UTC by agriggio

  • extracode on the same line

    If there is many widgets with extracode and the last lines are not empty (no nl after last code), the lines are merged on the same line. (see py_codegen.py line 670) Workaround: make sure all your extracodes end with an empty line.

    2009-09-12 11:45:19 UTC by lmarcoux

  • Extracode not generated

    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.

    2009-09-12 11:29:20 UTC by lmarcoux

  • Comment: Duplication of extracode

    This bug occurs only on a new file creation. In the module py_codegen.py function add_class adds extracode (line 670) then again for a new file (line 957). If this is an existing file, the return on line 878 will bypass the second execution. Workaround: geneate the file twice, second time around will be OK.

    2009-09-12 11:21:50 UTC by lmarcoux

  • Comment: extra code property allows only ASCII text

    To reproduce: Create a new project: add a frame (wxFrame) add a custom object: class wx.StaticText Now in the custom object properties window, under the 'Widget' tab, click the 'Add' button and enter this line: labelText="Test label" click on the 'Apply' button; Preview the frame: everything is fine. Again in the custom object properties window, under the 'Widget' tab, change the line to...

    2009-09-10 11:50:08 UTC by lmarcoux

  • Comment: extra code property allows only ASCII text

    This has been traced to the use of cStringIO module to compile attibutes. Quoting Python manual: " Unlike the memory files implemented by the StringIO module, those provided by this module are not able to accept Unicode strings that cannot be encoded as plain ASCII strings." You will have to use the StringIO module: in application.py, change line 372 from from cStringIO import StringIO to from...

    2009-09-09 23:46:14 UTC by lmarcoux

  • Inner classes cause error

    Using wxglade 0.6.3, the py_codegen has problems if the file has inner classes at the start of the file. e.g. class foo: class bar: def barstuff(self, etc.) def foostuff(self, etc.) Causes codegen to fail to find the handler block location for class Foo, and to leave its "nonce" token(s) behind.

    2009-06-10 20:59:26 UTC by pjohnson73

Our Numbers