mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Add CreateTextSizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
20
TODO.txt
20
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)
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user