File: test_richtextstyledlg.py

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (52 lines) | stat: -rw-r--r-- 1,760 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
import unittest
from unittests import wtc
import wx
import wx.richtext

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

class richtextstyledlg_Tests(wtc.WidgetTestCase):


    def test_richtextstyledlg1(self):
        wx.richtext.RICHTEXT_ORGANISER_DELETE_STYLES
        wx.richtext.RICHTEXT_ORGANISER_CREATE_STYLES
        wx.richtext.RICHTEXT_ORGANISER_APPLY_STYLES
        wx.richtext.RICHTEXT_ORGANISER_EDIT_STYLES
        wx.richtext.RICHTEXT_ORGANISER_RENAME_STYLES
        wx.richtext.RICHTEXT_ORGANISER_OK_CANCEL
        wx.richtext.RICHTEXT_ORGANISER_RENUMBER
        wx.richtext.RICHTEXT_ORGANISER_SHOW_CHARACTER
        wx.richtext.RICHTEXT_ORGANISER_SHOW_PARAGRAPH
        wx.richtext.RICHTEXT_ORGANISER_SHOW_LIST
        wx.richtext.RICHTEXT_ORGANISER_SHOW_BOX
        wx.richtext.RICHTEXT_ORGANISER_SHOW_ALL
        wx.richtext.RICHTEXT_ORGANISER_ORGANISE
        wx.richtext.RICHTEXT_ORGANISER_BROWSE
        wx.richtext.RICHTEXT_ORGANISER_BROWSE_NUMBERING


    def test_richtextstyledlg2(self):
        sheet = wx.richtext.RichTextStyleSheet()
        rtc = wx.richtext.RichTextCtrl(self.frame)

        dlg = wx.richtext.RichTextStyleOrganiserDialog(
            wx.richtext.RICHTEXT_ORGANISER_ORGANISE,
            sheet, rtc, self.frame)
        dlg.Destroy()


    def test_richtextstyledlg3(self):
        sheet = wx.richtext.RichTextStyleSheet()
        rtc = wx.richtext.RichTextCtrl(self.frame)

        dlg = wx.richtext.RichTextStyleOrganiserDialog()
        dlg.Create(wx.richtext.RICHTEXT_ORGANISER_ORGANISE,
                   sheet, rtc, self.frame)
        dlg.Destroy()


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

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