From b9b6a86f65301a74157f2bc98caa866b2178a951 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 2 Feb 2015 22:16:03 -0800 Subject: [PATCH] richtext wip --- unittests/test_richtextctrl.py | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/unittests/test_richtextctrl.py b/unittests/test_richtextctrl.py index 83c4f0f4..b54903cd 100644 --- a/unittests/test_richtextctrl.py +++ b/unittests/test_richtextctrl.py @@ -1,14 +1,40 @@ import imp_unittest, unittest import wtc import wx +import wx.richtext #--------------------------------------------------------------------------- class richtextctrl_Tests(wtc.WidgetTestCase): - # TODO: Remove this test and add real ones. def test_richtextctrl1(self): - self.fail("Unit tests for richtextctrl not implemented yet.") + wx.richtext.RE_READONLY + wx.richtext.RE_MULTILINE + wx.richtext.RE_CENTER_CARET + wx.richtext.RE_CENTRE_CARET + wx.richtext.RICHTEXT_SHIFT_DOWN + wx.richtext.RICHTEXT_CTRL_DOWN + wx.richtext.RICHTEXT_ALT_DOWN + wx.richtext.RICHTEXT_EX_NO_GUIDELINES + + + def test_richtextctrl2(self): + info = wx.richtext.RichTextContextMenuPropertiesInfo() + obj = wx.richtext.RichTextParagraph() + info.AddItem('Name', obj) + + + def test_richtextctrl3(self): + pass + + def test_richtextctrl4(self): + pass + + def test_richtextctrl5(self): + pass + + def test_richtextctrl6(self): + pass #---------------------------------------------------------------------------