Add wx.NotebookPage alias

This commit is contained in:
Robin Dunn
2019-12-31 13:46:50 -08:00
parent e88c385e14
commit 42dd0c6e12
2 changed files with 7 additions and 1 deletions

View File

@@ -59,9 +59,12 @@ def run():
wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING = wxEVT_BOOKCTRL_PAGE_CHANGING
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxEVT_NOTEBOOK_PAGE_CHANGED
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxEVT_NOTEBOOK_PAGE_CHANGING
""")
module.addPyCode("""\
# Add wx.NotebookPage alias, as seen in the documentation
NotebookPage = Window
""")
#-----------------------------------------------------------------
tools.doCommonTweaks(module)

View File

@@ -44,6 +44,9 @@ class notebook_Tests(wtc.WidgetTestCase):
nb.AddPage(p2, "Page2")
nb.SetSelection(0)
def test_notebookPageAlias(self):
assert wx.NotebookPage is wx.Window
#---------------------------------------------------------------------------