File: test_hyperlink.py

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (32 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import unittest
from unittests 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()