From 10dbdaa6780eb3ccc26014d32093dfecc1886778 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 7 Aug 2020 14:28:48 -0700 Subject: [PATCH] Add a note about the sizer item flags validation to the Migration Guide --- docs/MigrationGuide.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/MigrationGuide.rst b/docs/MigrationGuide.rst index efccec36..492f1dc5 100644 --- a/docs/MigrationGuide.rst +++ b/docs/MigrationGuide.rst @@ -711,6 +711,17 @@ override `InitLocale` if needed. +Sizer item flags validation +--------------------------- + +Starting with wxPython 4.1, wxWidgets is now validating the flags passed +when adding items to a sizer, to ensure that they are the correct flags for +the type of the sizer. If the given flags do not make sense, for example using +horizontal alignment flags in a horizontal box sizer, then a wxAssertionError +error is raised. + + + .. toctree:: :maxdepth: 2 :hidden: