RE: [SE|PY-macdev] New error at SEPY startup on OS X
Brought to you by:
sephiroth_tmm
From: Alessandro C. *sephiroth* <wis...@se...> - 2004-07-30 20:24:32
|
Yes, you're right about the image size. It seems i wrong the size of = certain icons.. Sorry It was 19x17 Anyway, as I sayd i will export all icons in PNG format in order to have = more control of them. For the second issue. This is another thing i forget.. Since wxMac does = not support the dynamic sash (the document splitter) this is not used in mac (at least till wxPython will not support that under mac = os) In the editor.py you should change the 'SetupScrollBars' method into = this: # ------------------ # DEFINE SCROLLBARS # ------------------ def SetupScrollBars(self): # hook the scrollbars provided by the wxDynamicSashWindow # to this view if wx.Platform =3D=3D '__WXMSW__': v_bar =3D self.dyn_sash.GetVScrollBar(self) h_bar =3D self.dyn_sash.GetHScrollBar(self) v_bar.Bind(wx.EVT_SCROLL, self.OnSBScroll) h_bar.Bind(wx.EVT_SCROLL, self.OnSBScroll) v_bar.Bind(wx.EVT_SET_FOCUS, self.OnSBFocus) h_bar.Bind(wx.EVT_SET_FOCUS, self.OnSBFocus) # And set the wxStyledText to use these scrollbars instead # of its built-in ones. self.SetVScrollBar(v_bar) self.SetHScrollBar(h_bar) else: pass And let's see next errors ^_^ 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 ::Richard Wallace ::Sent: venerd=EC 30 luglio 2004 20.57 ::To: sep...@li... ::Subject: Re: [SE|PY-macdev] New error at SEPY startup on OS X :: ::Greetings - :: ::Yes, that's where I am with it right now. However, swapping=20 ::out the "images.getp_charBitmap()" call in line 946 with=20 ::another one (mine just duplicates the =20 ::"images.getc_packageBitmap()" call from the previous ::line) gets past the error. It seems the bitmap returned by ::getp_chatBitmap() isn't the correct size that the imagelist_1=20 ::object is expecting. Weird though that this doesn't happen on=20 ::windows machines. :: ::After doing this however, the new error message I get is as follows: :: :: File ::"//Library/Frameworks/Python.framework/Versions/2.3/lib/python ::2.3/site- ::packages/wx/_core.py", line 10528, in <lambda> :: lambda event: event.callable(*event.args, **event.kw) ) :: File "/usr/local/src/SciTE/SEPY.py", line 403, in=20 ::__checkForNewDocument :: self.OnNewDocument(0) :: File "/usr/local/src/SciTE/SEPY.py", line 2299, in OnNewDocument :: view =3D Editor(editor_parent, id, doc_name, self, text,=20 ::stat, newlines, classpaths =3D classpaths) :: File "/usr/local/src/SciTE/Editor.py", line 252, in __init__ :: self.RegisterImage(4, getEmptyBitmap()) :: File ::"//Library/Frameworks/Python.framework/Versions/2.3/lib/python ::2.3/site- ::packages/wx/stc.py", line 1400, in RegisterImage :: return _stc.StyledTextCtrl_RegisterImage(*args, **kwargs) ::wx._core.PyAssertionError: C++ assertion "bitmap.GetWidth()=20 ::=3D=3D m_width && bitmap.GetHeight() =3D=3D m_height" failed in ::/usr/local/src/wxWidgets/src/generic/imaglist.cpp(74):=20 ::invalid bitmap size in wxImageList: this might work on this=20 ::platform but definitely won't under Windows. :: ::To get around this just to see what happens, I performed a=20 ::similar workaround and replaced line 252 with: ::self.RegisterImage(4, getPrototype3Bitmap()) :: ::Doing this results in the following error: :: File ::"//Library/Frameworks/Python.framework/Versions/2.3/lib/python ::2.3/site- ::packages/wx/_core.py", line 10528, in <lambda> :: lambda event: event.callable(*event.args, **event.kw) ) :: File "/usr/local/src/SciTE/SEPY.py", line 403, in=20 ::__checkForNewDocument :: self.OnNewDocument(0) :: File "/usr/local/src/SciTE/SEPY.py", line 2299, in OnNewDocument :: view =3D Editor(editor_parent, id, doc_name, self, text,=20 ::stat, newlines, classpaths =3D classpaths) :: File "/usr/local/src/SciTE/Editor.py", line 254, in __init__ :: self.SetupScrollBars() :: File "/usr/local/src/SciTE/Editor.py", line 1638, in=20 ::SetupScrollBars :: v_bar =3D self.dyn_sash.GetVScrollBar(self) ::AttributeError: 'Notebook' object has no attribute 'GetVScrollBar' :: :: ::And that's pretty much where I am now... ::Using: ::OS X 10.3.4 ::python 2.3.4 ::wxPython 2.5.2.3p :: ::Also, thanks so much for all your work on this Ale! Seeing=20 ::the SEPY mailing lists spike with all the recent feedback is=20 ::making me all the more excited to get this working. :: ::Richard :: :: ::On Jul 30, 2004, at 2:29 PM, valley wrote: :: ::> Hi there, ::> ::> i got a new error message when using Python2.3.4 and the newest=20 ::> wxPython version ::> (2.5.2.3p.20040723) on OS X Panther (10.3.4) when starting SEPY: ::> ::> [Debug] 20:14:29: Unrecognized accel key 'CAPSLOCK', accel string=20 ::> ignored. ::> [Debug] 20:14:29: Unrecognized accel key 'CAPSLOCK', accel string=20 ::> ignored. ::> Traceback (most recent call last): ::> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line=20 ::139, in Notify ::> frame =3D main_window(parent=3DNone, id=3Dwx.NewId(),=20 ::title=3DAbout_title,=20 ::> dialog =3D self.dialog) ::> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line 258, in=20 ::> __init__ ::> self.__set_properties() ::> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line 946, in=20 ::> __set_properties ::> imagelist_1.Add(images.getp_charBitmap()) # Characters ::> File "//Library/Python/2.3/wx/_gdi.py", line 4359, in Add ::> return _gdi_.ImageList_Add(*args, **kwargs) ::> wx._core.PyAssertionError: C++ assertion "bitmap.GetWidth()=20 ::=3D=3D m_width=20 ::> && ::> bitmap.GetHeight() =3D=3D m_height" failed in ::>=20 ::/tmp/BUILD/wxPythonSrc-2.5.2.3p.20040723/src/generic/imaglist.cpp(74): ::> invalid bitmap size in wxImageList: this might work on this=20 ::platform=20 ::> but definitely won't under Windows. ::> ::> i'm not sure but didn't someone else also once discovered a bitmap=20 ::> error on os x ? ::> hope this helps a little bit further ;-) ::> ::> valley ::> ::> ::> ::> ------------------------------------------------------- ::> This SF.Net email is sponsored by OSTG. Have you noticed=20 ::the changes=20 ::> on Linux.com, ITManagersJournal and NewsForge in the past=20 ::few weeks?=20 ::> Now, one more big change to announce. We are now OSTG- Open Source=20 ::> Technology Group. Come see the changes on the new OSTG site.=20 ::> www.ostg.com _______________________________________________ ::> sepy-macdev mailing list ::> sep...@li... ::> https://lists.sourceforge.net/lists/listinfo/sepy-macdev ::> :: :: :: ::------------------------------------------------------- ::This SF.Net email is sponsored by OSTG. Have you noticed the=20 ::changes on Linux.com, ITManagersJournal and NewsForge in the=20 ::past few weeks? Now, one more big change to announce. We are=20 ::now OSTG- Open Source Technology Group. Come see the changes=20 ::on the new OSTG site. www.ostg.com=20 ::_______________________________________________ ::sepy-macdev mailing list ::sep...@li... ::https://lists.sourceforge.net/lists/listinfo/sepy-macdev |