+ def OnCreateExclusiveStyle(self, event):
+
+ # recreate with style where only one panel at the time is
+ # allowed to be opened and the others are collapsed to bottom
+
+ if event.IsChecked():
+ self.GetMenuBar().Check(self._singlestyle, False)
+ self.GetMenuBar().Check(self._bottomstyle, False)
+ self._flags = self._flags & ~fpb.FPB_SINGLE_FOLD
+ self._flags = self._flags & ~fpb.FPB_COLLAPSE_TO_BOTTOM
+ self._flags = self._flags | fpb.FPB_EXCLUSIVE_FOLD
+ else:
+ self._flags = self._flags & ~fpb.FPB_EXCLUSIVE_FOLD
+
+ self.ReCreateFoldPanel(self._flags)
+
+