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()
|