diff --git a/TODO.txt b/TODO.txt index 2ccda54a..0a499371 100644 --- a/TODO.txt +++ b/TODO.txt @@ -147,25 +147,7 @@ other dev stuff * power * overlay * PseudoDC - - * Divide Phoenix core into multiple modules. Perhaps using the same - divisions that a wx multi-lib build uses would be a good - idea. OTOH, doing something like what Classic did will make the - transition easier for anybody who explicitly used the core - extensions there. OTOOH, keeping it as one big module might not be - so bad... NOTE: I've attempted to do this split but because of all - the various interdependencies of the items currently in core I - wasn't able to make any divisions that had more than a few classes in - them. So let's go the route of following the wx multi-lib - divisions, except where it makes more sense for a group of classes - to have their own extension module like dataview or grid. - - We will likely need to have a way to export (like with a CObject) some of - the helper functions in wxpy_api.sip from the core module so they can - be used in the other extension modules... DONE. - - * Check wxDialog::CreateTextSizer, is it wrapped? - + * Add wxCHMHelpController (MSW-only) diff --git a/unittests/test_dialog.py b/unittests/test_dialog.py index c8e1d48d..4de03ae8 100644 --- a/unittests/test_dialog.py +++ b/unittests/test_dialog.py @@ -28,13 +28,22 @@ class dialog_Tests(wtc.WidgetTestCase): self.runDialog(dlg) def test_dialog1(self): + # with parent dlg = wx.Dialog(self.frame, title='Hello') self.runDialog(dlg) def test_dialog2(self): + # without parent dlg = wx.Dialog(None, title='World') self.runDialog(dlg) + def test_dialogTextSizer(self): + dlg = wx.Dialog(self.frame, title='Hello') + s = dlg.CreateTextSizer("This is a test.\nThis is only a test.\nHello World") + self.assertTrue(isinstance(s, wx.Sizer)) + self.assertTrue(len(s.Children) == 3) + self.runDialog(dlg) + #---------------------------------------------------------------------------