On Sunday 06 May 2007 10:46, Ed Leafe wrote:
> dabo Commit
> Revision 3102
> Date: 2007-05-06 10:46:15 -0700 (Sun, 06 May 2007)
> Author: Ed
> Trac: http://svn.dabodev.com/trac/dabo/changeset/3102
>
> Changed:
> U   trunk/dabo/ui/uiwx/__init__.py
>
> Log:
> Added a try block around the check for wx.html.HtmlLinkEvent so that those
> still using 2.6 and earlier can run Dabo.
>
>
> Diff:
> Modified: trunk/dabo/ui/uiwx/__init__.py
> ===================================================================
> --- trunk/dabo/ui/uiwx/__init__.py    2007-05-04 14:26:41 UTC (rev 3101)
> +++ trunk/dabo/ui/uiwx/__init__.py    2007-05-06 17:46:15 UTC (rev 3102)
> @@ -489,8 +489,12 @@
>               ed["collapsed"] = not ed["expanded"]
>               ed["panel"] = wxEvt.GetEventObject().GetParent()
>
> -     if isinstance(wxEvt, wx.html.HtmlLinkEvent):
> -             ed["href"] = wxEvt.href
> +     try:
> +             if isinstance(wxEvt, wx.html.HtmlLinkEvent):
> +                     ed["href"] = wxEvt.href
> +     except:
> +             # wxPython 2.6 and earlier doesn't seem to have this event
> +             pass
>
>       return ed
Works for me.
-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to