RE: AW: [SE|PY-macdev] OS X Bugs with SEPY newest revision
Brought to you by:
sephiroth_tmm
From: Alessandro C. *sephiroth* <sep...@us...> - 2005-01-28 23:04:52
|
Sorry, i forgot to mention a python basic thing. Python syntax use only indentation for compact code (for example if = statements of for loops) For this reason tabulation must be the same in all the files. I'm using 4 spaces tabulation (not using the tab symbol) You need to use the same, otherwise you can encounter this error. View the hidden chars should be something like: ........self.mainmenu.Append(menu3, _("&Edit")) P.s. Can you also tell me your wxpython and osx versions? thanks Alessandro Crugnola - sephiroth --------------------------------------------- Macromedia Flash Team Volunteer http://www.macromedia.com/go/team Flash && PHP developer ale...@se... *relax with SEPY http://www.sf.net/projects/sepy --------------------------------------------- =20 ::-----Original Message----- ::From: sep...@li...=20 ::[mailto:sep...@li...] On Behalf Of=20 ::Andrew Blair ::Sent: venerd=EC 28 gennaio 2005 16.05 ::To: sep...@li... ::Subject: Re: AW: [SE|PY-macdev] OS X Bugs with SEPY newest revision :: ::Hi Alessandro, :: ::I tried commenting out :: :: #self.mainmenu.Append(menu3, _("&Edit")) :: ::And moving it up so that it was just under wx.menu like this: :: =20 :: menu3 =3D wx.Menu() :: self.mainmenu.Append(menu3, _("&Edit")) :: ::As I don't know python, I'm not sure what you mean=20 ::specifically by 'same thing for every wx.Menu'. I couldn't=20 ::see a pattern that was close enough to repeat this step for=20 ::anything else. The error I get from making this change ::is: :: ::Traceback (most recent call last): :: File "main.pyw", line 19, in ? :: from SEPY import main :: File "/Users/jondo/tmp/sepyCompile/SciTE/SEPY.py", line 1749 :: self.mainmenu.Append(menu3, _("&Edit")) :: ^ ::SyntaxError: invalid syntax :: :: ::Whereas before as I mentioned in an earlier message, it was: ::>=20 ::> Traceback (most recent call last): ::> File "/Users/jondo/tmp/sepyCompile/SciTE/SEPY.py", line=20 ::146, in Notify ::> frame =3D main_window(parent=3DNone, id=3Dwx.NewId(),=20 ::title=3DAbout_title,=20 ::> dialog =3D self.dialog) File=20 ::> "/Users/jondo/tmp/sepyCompile/SciTE/SEPY.py", line 274, in __init__ ::> self.left_win =3D self._createLeftPanel() File=20 ::> "/Users/jondo/tmp/sepyCompile/SciTE/SEPY.py", line 540, in=20 ::> _createLeftPanel ::> self.notebook_l =3D wx.Choicebook(win, -1, style=3Dn_style) ::> AttributeError: 'module' object has no attribute 'Choicebook' :: ::Cheers, :: ::Andrew :: :: ::On 1/27/05 9:37 AM, "Alessandro Crugnola *sephiroth*" ::<ale...@se...> wrote: :: ::> mmmhhh.. ::>=20 ::> try to move this line of code: ::> self.mainmenu.Append(menu3, _("&Edit")) ::>=20 ::> just after this line: ::> menu3 =3D wx.Menu() ::>=20 ::>=20 ::> so, i think the same thing for every wx.Menu, even if i think also=20 ::> this is a bug in wxpython osx version (since this issue=20 ::didn't appear=20 ::> in previous ::> versions) ::>=20 ::>=20 ::> valley said: ::>> so this is the stacktrace i get when trying to start the newest=20 ::>> version (1.0.6.46) with the latest wxpython: ::>>=20 ::>> Traceback (most recent call last): ::>> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line=20 ::146, in Notify ::>> frame =3D main_window(parent=3DNone, id=3Dwx.NewId(),=20 ::>> title=3DAbout_title, dialog =3D self.dialog) ::>> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line=20 ::295, in __init__ ::>> self._setMenu() ::>> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line=20 ::1824, in _setMenu ::>> menu3.AppendSeparator() ::>> File=20 ::"//Library/Python/2.3/wx-2.5.3-mac-unicode/wx/_core.py", line=20 ::>> 7966, in AppendSeparator ::>> return _core_.Menu_AppendSeparator(*args, **kwargs) ::>> wx._core.PyAssertionError: C++ assertion "wxAssertFailure"=20 ::failed in ::>> ../src/mac/carbon/menu.cpp(529): can't refresh unatteched menubar ::>>=20 ::>> please note that i didn't update so far the other needed=20 ::components=20 ::>> (like pyRXP or 4Suite). ::>>=20 ::>> if needed you can tell me change propositions to do in the source. ::>>=20 ::>> valley ::>>=20 ::>>=20 ::>>=20 ::>>=20 ::>> ------------------------------------------------------- ::>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive=20 ::>> Reporting Tool for open source databases. Create=20 ::drag-&-drop reports.=20 ::>> Save time by over 75%! Publish reports on the web. Export=20 ::to DOC, XLS, RTF, etc. ::>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl ::>> _______________________________________________ ::>> sepy-macdev mailing list ::>> sep...@li... ::>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev ::>=20 ::>=20 ::> --- ::> Alessandro Crugnola *sephiroth* ::> web: http://www.sephiroth.it ::> mail: ale...@se... ::>=20 ::>>>> mongia 9,26 <<< ::> "la programmazione =E8 come il maiale. Non si butta via niente". ::> --- ::>=20 ::>=20 ::>=20 ::>=20 ::> ------------------------------------------------------- ::> This SF.Net email is sponsored by: IntelliVIEW -- Interactive=20 ::> Reporting Tool for open source databases. Create=20 ::drag-&-drop reports.=20 ::> Save time by over 75%! Publish reports on the web. Export=20 ::to DOC, XLS, RTF, etc. ::> Download a FREE copy at http://www.intelliview.com/go/osdn_nl ::> _______________________________________________ ::> sepy-macdev mailing list ::> sep...@li... ::> https://lists.sourceforge.net/lists/listinfo/sepy-macdev ::>=20 :: ::-- ::Andrew Blair ::Interactive Director ::905.339.0750 x32 ::http://riordondesign.com ::( inform ) inspire ( :: :: :: :: ::------------------------------------------------------- ::This SF.Net email is sponsored by: IntelliVIEW -- Interactive=20 ::Reporting Tool for open source databases. Create drag-&-drop=20 ::reports. Save time by over 75%! Publish reports on the web.=20 ::Export to DOC, XLS, RTF, etc. ::Download a FREE copy at http://www.intelliview.com/go/osdn_nl ::_______________________________________________ ::sepy-macdev mailing list ::sep...@li... ::https://lists.sourceforge.net/lists/listinfo/sepy-macdev :: |