mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Add wx.NotebookPage alias
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user