--- nfo/projects/netfraggle/bin/FraggleHtmlWindow.py 2004/08/25 22:45:51 1.1
+++ nfo/projects/netfraggle/bin/FraggleHtmlWindow.py 2004/08/26 15:05:28 1.2
@@ -1,23 +1,23 @@
#!/usr/bin/env python
-# generated by wxGlade 0.3.3 on Wed Aug 25 15:12:49 2004
-# code ripped from Pears: http://project5.freezope.org/pears/
-
-# $Id: FraggleHtmlWindow.py,v 1.1 2004/08/25 22:45:51 joko Exp $
+# $Id: FraggleHtmlWindow.py,v 1.2 2004/08/26 15:05:28 joko Exp $
# $Log: FraggleHtmlWindow.py,v $
+# Revision 1.2 2004/08/26 15:05:28 joko
+# propagate arguments transparently to superclass-constructor
+#
# Revision 1.1 2004/08/25 22:45:51 joko
# initial commit
#
-#import wx
from wxPython.wx import *
from wxPython.html import *
class FraggleHtmlWindow(wxHtmlWindow):
"""Adds OnLinkClicked"""
- def __init__(self, parent, id):
- wxHtmlWindow.__init__(self, parent, id, style=wxNO_FULL_REPAINT_ON_RESIZE)
- self.urlOpener=None # must be assigned from pearsapp!
+ # learned from wxGlade:
+ # propagate arguments transparently to superclass-constructor
+ def __init__(self, *args, **kwds):
+ wxHtmlWindow.__init__(self, *args, **kwds)
+ self.urlOpener = None # must be assigned from main application!
def OnLinkClicked(self, linkinfo):
self.urlOpener.open(linkinfo.GetHref())
-