1 |
joko |
1.1 |
#!/usr/bin/env python |
2 |
|
|
|
3 |
joko |
1.2 |
# $Id: FraggleHtmlWindow.py,v 1.1 2004/08/25 22:45:51 joko Exp $ |
4 |
|
|
# $Log: FraggleHtmlWindow.py,v $ |
5 |
|
|
# Revision 1.1 2004/08/25 22:45:51 joko |
6 |
|
|
# initial commit |
7 |
|
|
# |
8 |
joko |
1.1 |
|
9 |
|
|
from wxPython.wx import * |
10 |
|
|
from wxPython.html import * |
11 |
|
|
|
12 |
|
|
class FraggleHtmlWindow(wxHtmlWindow): |
13 |
|
|
"""Adds OnLinkClicked""" |
14 |
joko |
1.2 |
# learned from wxGlade: |
15 |
|
|
# propagate arguments transparently to superclass-constructor |
16 |
|
|
def __init__(self, *args, **kwds): |
17 |
|
|
wxHtmlWindow.__init__(self, *args, **kwds) |
18 |
|
|
self.urlOpener = None # must be assigned from main application! |
19 |
joko |
1.1 |
def OnLinkClicked(self, linkinfo): |
20 |
|
|
self.urlOpener.open(linkinfo.GetHref()) |