mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
33 lines
923 B
Python
33 lines
923 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import wx.adv
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class hyperlink_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_hyperlink1(self):
|
|
w = wx.adv.HyperlinkCtrl(self.frame, label='label', url='http://wxPython.org')
|
|
|
|
def test_hyperlink2(self):
|
|
w = wx.adv.HyperlinkCtrl()
|
|
w.Create(self.frame, label='label', url='http://wxPython.org')
|
|
|
|
def test_hyperlink3(self):
|
|
evt = wx.adv.HyperlinkCtrl(self.frame, 123, 'url')
|
|
|
|
wx.adv.HL_CONTEXTMENU
|
|
wx.adv.HL_ALIGN_LEFT
|
|
wx.adv.HL_ALIGN_RIGHT
|
|
wx.adv.HL_ALIGN_CENTRE
|
|
wx.adv.HL_DEFAULT_STYLE
|
|
|
|
wx.adv.wxEVT_COMMAND_HYPERLINK
|
|
wx.adv.EVT_HYPERLINK
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|