projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed creation of the mask in wxImage -> wxBitmap conversion when bpp < 32 (patch...
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
ClickableHtmlWindow.py
diff --git
a/wxPython/wx/lib/ClickableHtmlWindow.py
b/wxPython/wx/lib/ClickableHtmlWindow.py
index 372f7d1057a50c2962749b0f255843ff31707b69..51c812630ebc7700696a5005c5dd815d4d289e3a 100644
(file)
--- a/
wxPython/wx/lib/ClickableHtmlWindow.py
+++ b/
wxPython/wx/lib/ClickableHtmlWindow.py
@@
-1,3
+1,12
@@
+# 12/01/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o Updated for wx namespace. Not tested though.
+#
+# 12/17/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o Removed wx prefix from class name,
+# updated reverse renamer
+#
"""
sorry no documentation...
"""
sorry no documentation...
@@
-5,28
+14,27
@@
Christopher J. Fama
"""
"""
+import wx
+import wx.html as html
-from wxPython.wx import *
-from wxPython.html import *
-
-class wxPyClickableHtmlWindow(wxHtmlWindow):
+class PyClickableHtmlWindow(html.HtmlWindow):
"""
Class for a wxHtmlWindow which responds to clicks on links by opening a
browser pointed at that link, and to shift-clicks by copying the link
to the clipboard.
"""
def __init__(self,parent,ID,**kw):
"""
Class for a wxHtmlWindow which responds to clicks on links by opening a
browser pointed at that link, and to shift-clicks by copying the link
to the clipboard.
"""
def __init__(self,parent,ID,**kw):
- apply(
wx
HtmlWindow.__init__,(self,parent,ID),kw)
+ apply(
html.
HtmlWindow.__init__,(self,parent,ID),kw)
def OnLinkClicked(self,link):
def OnLinkClicked(self,link):
- self.link = wxTextDataObject(link.GetHref())
+ self.link = wx
.
TextDataObject(link.GetHref())
if link.GetEvent().ShiftDown():
if link.GetEvent().ShiftDown():
- if wxTheClipboard.Open():
- wxTheClipboard.SetData(self.link)
- wxTheClipboard.Close()
+ if wx
.
TheClipboard.Open():
+ wx
.
TheClipboard.SetData(self.link)
+ wx
.
TheClipboard.Close()
else:
else:
- dlg = wx
MessageDialog(self,"Couldn't open clipboard!\n",wx
OK)
- wxBell()
+ dlg = wx
.MessageDialog(self,"Couldn't open clipboard!\n",wx.
OK)
+ wx
.
Bell()
dlg.ShowModal()
dlg.Destroy()
else:
dlg.ShowModal()
dlg.Destroy()
else: