File: test_richtextstyles.py

package info (click to toggle)
wxpython4.0 4.0.7%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 210,992 kB
  • sloc: cpp: 888,989; python: 226,808; makefile: 52,078; ansic: 45,837; sh: 3,014; xml: 1,534; javascript: 436; perl: 264
file content (69 lines) | stat: -rw-r--r-- 1,865 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import unittest
from unittests import wtc
import wx
import wx.richtext

#---------------------------------------------------------------------------

class richtextstyles_Tests(wtc.WidgetTestCase):

    def test_richtextstyles01(self):
        ctrl = wx.richtext.RichTextStyleListCtrl(self.frame)


    def test_richtextstyles02(self):
        ctrl = wx.richtext.RichTextStyleListCtrl()
        ctrl.Create(self.frame)


    def test_richtextstyles03(self):
        with self.assertRaises(TypeError):
            sdef = wx.richtext.RichTextStyleDefinition()


    def test_richtextstyles04(self):
        sdef = wx.richtext.RichTextParagraphStyleDefinition()


    def test_richtextstyles05(self):
        ctrl = wx.richtext.RichTextStyleListBox(self.frame)


    def test_richtextstyles06(self):
        ctrl = wx.richtext.RichTextStyleListBox()
        ctrl.Create(self.frame)


    def test_richtextstyles05(self):
        wx.richtext.RichTextStyleListBox.RICHTEXT_STYLE_ALL
        wx.richtext.RichTextStyleListBox.RICHTEXT_STYLE_PARAGRAPH
        wx.richtext.RichTextStyleListBox.RICHTEXT_STYLE_CHARACTER
        wx.richtext.RichTextStyleListBox.RICHTEXT_STYLE_LIST
        wx.richtext.RichTextStyleListBox.RICHTEXT_STYLE_BOX


    def test_richtextstyles6(self):
        ctrl = wx.richtext.RichTextStyleComboCtrl(self.frame)


    def test_richtextstyles07(self):
        ctrl = wx.richtext.RichTextStyleComboCtrl()
        ctrl.Create(self.frame)


    def test_richtextstyles08(self):
        sdef = wx.richtext.RichTextCharacterStyleDefinition()


    def test_richtextstyles09(self):
        sdef = wx.richtext.RichTextListStyleDefinition()


    def test_richtextstyles10(self):
        sdef = wx.richtext.RichTextStyleSheet()


#---------------------------------------------------------------------------

if __name__ == '__main__':
    unittest.main()