Re: [SE|PY-macdev] Continuing OS X compiling
Brought to you by:
sephiroth_tmm
From: valley <va...@ic...> - 2004-08-29 12:23:15
|
> Ok, I just added an icon for the File panel. > Now it looks good for me. Thanks. > ::And this is the error message when this line isn't commented: > :: File "/usr/local/src/SciTE/Editor.py", line 276, in __init__ > :: self.SetCodePage(stc.STC_CP_UTF8) > :: File > ::"//Library/Frameworks/Python.framework/Versions/2.3/lib/python > ::2.3/site- > :: packages/wx/stc.py", line 1069, in SetCodePage > :: return _stc.StyledTextCtrl_SetCodePage(*args, **kwargs) > :: wx._core.PyAssertionError: C++ assertion "codePage != > ::wxSTC_CP_UTF8" > :: failed in /usr/local/src/wxWidgets/contrib/src/stc/stc.cpp(423): > :: wxSTC_CP_UTF8 may not be used when wxUSE_UNICODE is off. > > This seems really a wxPython MAC build issue. > Can you try to look at the wxPython archives to look for something about compiling this under mac? > www.wxpython.org > Found nothing there, but why not just using the codepage that is returned when typing self.GetCodePage() ? > > ::I did: This binding is called once for every new document you > ::create, i.e. > ::on startup also once for the standard Untitled document. > ::So it's the event that is raised all the time. > :: > > Damn,, i really cannot understand. > Ps. Maybe i already asked to you, but if you do the method updateInterface looks like this: > > def OnUpdateInterface(self, event): > pass > > Is the error raised too? > No, in this case no recursion error is raised. Perhaps it could be come content of this method that always raises this UpdateUI event again and again. I'll try that out... > > ::No I can't, because this error message isn't reported in the > ::shell but an extra Python error message window pops up for > ::this error. So I have no idea where in your code the error happens. > ::But if there are only two occurences we can get it out... > > Ok, tell me if one of the two is the one > The error occurs when creating the 6th page (file filters). Go to line 465 where you select the first element of ff_choices list. Since there is no element in this list an index error is thrown. When I commented this line the Preferences Window opens correctly. So you have to leave this auto-select away or check if there is at least one element in this list. Or it's an error when filling this list on setup, i.e. normally you guess that there is some content and currently on OS X nothing is entered into this list. Btw: The whole Preferences Window is totally static, i.e. currently I have no possibility to change any settings in there at all... And when I type 'Apply' I get an invalid index error in WindowsPrefs.py (line 1195) in onApply languag = self.cb_encoding_copy.GetValue() Of course, because in the Language combo box on page 1 (General) is no entry, i.e. the GetValue() will raise an error.... The Fonts list (page 2) is filled, Courier is selected but again no changes are possible. A lot to do it seems ;-) valley |