There are two AuiNotebook implementations, one in wx.aui, and one in wx.lib.agw.aui.
The former honors the AUI_NB_CLOSE_ON_ALL_TABS flag, but doesn’t support SetCloseButton.
The latter ignores AUI_NB_CLOSE_ON_ALL_TABS, and, because of that, throws an exception on calls to SetCloseButton, complaining that ALL_TABS is not set.
What’s a poor programmer to do? And, in general, which is the correct .aui to be using? I assume the wx.lib.agw.aui one, but (for my purposes) its AuiNotebook is inferior to the wx.aui one.