1 |
joko |
1.1 |
#!/usr/bin/env python |
2 |
|
|
|
3 |
|
|
# generated by wxGlade 0.3.3 on Wed Aug 25 15:12:49 2004 |
4 |
|
|
# code ripped from Pears: http://project5.freezope.org/pears/ |
5 |
|
|
|
6 |
|
|
# $Id$ |
7 |
|
|
# $Log$ |
8 |
|
|
|
9 |
|
|
#import wx |
10 |
|
|
from wxPython.wx import * |
11 |
|
|
from wxPython.html import * |
12 |
|
|
|
13 |
|
|
class FraggleHtmlWindow(wxHtmlWindow): |
14 |
|
|
"""Adds OnLinkClicked""" |
15 |
|
|
def __init__(self, parent, id): |
16 |
|
|
wxHtmlWindow.__init__(self, parent, id, style=wxNO_FULL_REPAINT_ON_RESIZE) |
17 |
|
|
self.urlOpener=None # must be assigned from pearsapp! |
18 |
|
|
def OnLinkClicked(self, linkinfo): |
19 |
|
|
self.urlOpener.open(linkinfo.GetHref()) |
20 |
|
|
|