[issue11611] wxPython PropertyGrid Demo error and fix
New submission from Arif Zaman arifza...@gmail.com: In the wxPython Demo the PropertyGrid code has the lines # # Let's use some simple custom editor # # NOTE: Editor must be registered *before* adding a property that # uses it. pg.RegisterEditor(TrivialPropertyEditor) pg.RegisterEditor(SampleMultiButtonEditor) pg.RegisterEditor(LargeImageEditor) The first time you look at this demo, it runs. Then if you go to some other demo, and return back to this (in the same session), it tries to register the same editors. Since they are already registered this causes an AssertionError. I fixed it by # # Let's use some simple custom editor # # NOTE: Editor must be registered *before* adding a property that # uses it. try: pg.RegisterEditor(TrivialPropertyEditor) pg.RegisterEditor(SampleMultiButtonEditor) pg.RegisterEditor(LargeImageEditor) except AssertionError: pass although I am sure you can probably do better. PS: This is my first visit to this site, so if I have posted this with some incorrect area, please just let me know kindly. -- components: Demos and Tools messages: 131441 nosy: Arif.Zaman priority: normal severity: normal status: open title: wxPython PropertyGrid Demo error and fix type: compile error versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11611] wxPython PropertyGrid Demo error and fix
Ned Deily n...@acm.org added the comment: What demo file are you referring to? If it is something to do with wxPython, you probably want to refer to the bug tracker for that project. wxPython is not part of the standard Python library. See http://www.wxpython.org/ and http://trac.wxwidgets.org/ -- nosy: +ned.deily status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11611] wxPython PropertyGrid Demo error and fix
Arif Zaman arifza...@gmail.com added the comment: Thanks, will do. Arif On Sun, Mar 20, 2011 at 2:35 AM, Ned Deily rep...@bugs.python.org wrote: Ned Deily n...@acm.org added the comment: What demo file are you referring to? If it is something to do with wxPython, you probably want to refer to the bug tracker for that project. wxPython is not part of the standard Python library. See http://www.wxpython.org/ and http://trac.wxwidgets.org/ -- nosy: +ned.deily status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11611 ___ -- status: pending - open Added file: http://bugs.python.org/file21301/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11611 ___Thanks, will do.divbr/divdivArifbrbrdiv class=gmail_quoteOn Sun, Mar 20, 2011 at 2:35 AM, Ned Deily span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:br blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;br Ned Deily lt;a href=mailto:n...@acm.org;n...@acm.org/agt; added the comment:br br What demo file are you referring to? Â If it is something to do with wxPython, you probably want to refer to the bug tracker for that project. Â wxPython is not part of the standard Python library.br br See a href=http://www.wxpython.org/; target=_blankhttp://www.wxpython.org//a and a href=http://trac.wxwidgets.org/; target=_blankhttp://trac.wxwidgets.org//abr br --br nosy: +ned.deilybr status: open -gt; pendingbr divdiv/divdiv class=h5br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue11611; target=_blankhttp://bugs.python.org/issue11611/agt;br ___br /div/div/blockquote/divbr/div ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11611] wxPython PropertyGrid Demo error and fix
Changes by Ned Deily n...@acm.org: -- resolution: - invalid stage: - committed/rejected status: open - closed type: compile error - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com