This file contains the SVN revision history for hyperlink, at revision 68881.
Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).
The following log message was entered by the committer:
AGW: General overhaul of the documentation, much improved. All the widgets have their own sample usage in the docs as well;
FlatNotebook: Added the FNB_NAV_BUTTONS_WHEN_NEEDED style, which hides the navigation left/right arrows if all tabs fit;
RibbonBar: - Added the EVT_RIBBONBAR_TAB_LEFT_DCLICK event, which generates a special event
when a ribbon bar tab is double-clicked;
XLSGrid: a new widget was added to AGW, termed XLSGrid. It’s based on wx.grid.Grid and can be used to faithfully reproduce the appearance of a Microsoft Excel spreadsheets.
Version SVN diff:
--- wxPython/3rdParty/AGW/agw/hyperlink.py 2011/07/24 21:36:47 68362
+++ wxPython/3rdParty/AGW/agw/hyperlink.py 2011/08/25 16:40:17 68881
@@ -3,7 +3,7 @@
# Ported From Angelo Mandato C++ Code By:
#
# Andrea Gavana, @ 27 Mar 2005
-# Latest Revision: 27 Nov 2009, 17.00 GMT
+# Latest Revision: 17 Aug 2011, 15.00 GMT
#
#
# Original Web Site (For The C++ Code):
@@ -26,14 +26,14 @@
# --------------------------------------------------------------------------- #
"""
-HyperLinkCtrl is a control for wxPython that acts like a hyper link
+L{HyperLinkCtrl} is a control for wxPython that acts like a hyper link
in a typical browser.
Description
===========
-`HyperLinkCtrl` is a control for wxPython that acts like a hyper link
+L{HyperLinkCtrl} is a control for wxPython that acts like a hyper link
in a typical browser. Latest features include the ability to capture
your own left, middle, and right click events to perform your own
custom event handling and ability to open link in a new or current
@@ -42,6 +42,53 @@
Special thanks to Robin Dunn for the event binder for the 3 mouse buttons.
+Usage
+=====
+
+Usage example::
+
+ import wx
+ import wx.lib.agw.hyperlink as hl
+
+ class MyFrame(wx.Frame):
+
+ def __init__(self, parent):
+
+ wx.Frame.__init__(self, parent, -1, "HyperLink Demo")
+
+ panel = wx.Panel(self, -1)
+
+ # Default Web links:
+ hyper1 = hl.HyperLinkCtrl(panel, -1, "wxPython Main Page", pos=(100, 100),
+ URL="http://www.wxpython.org/")
+
+
+ # Web link with underline rollovers, opens in same window
+ hyper2 = hl.HyperLinkCtrl(panel, -1, "My Home Page", pos=(100, 150),
+ URL="http://xoomer.virgilio.it/infinity77/")
+
+ hyper2.AutoBrowse(False)
+ hyper2.SetColours("BLUE", "BLUE", "BLUE")
+ hyper2.EnableRollover(True)
+ hyper2.SetUnderlines(False, False, True)
+ hyper2.SetBold(True)
+ hyper2.OpenInSameWindow(True)
+ hyper2.SetToolTip(wx.ToolTip("Hello World!"))
+ hyper2.UpdateLink()
+
+
+ # our normal wxApp-derived class, as usual
+
+ app = wx.PySimpleApp()
+
+ frame = MyFrame(None)
+ app.SetTopWindow(frame)
+ frame.Show()
+
+ app.MainLoop()
+
+
+
Window Styles
=============
@@ -65,9 +112,9 @@
License And Version
===================
-HyperLinkCtrl is distributed under the wxPython license.
+L{HyperLinkCtrl} is distributed under the wxPython license.
-Latest Revision: Andrea Gavana @ 27 Nov 2009, 17.00 GMT
+Latest Revision: Andrea Gavana @ 17 Aug 2011, 15.00 GMT
Version 0.6