def activate(self, sidebarwin): """ Set the mode of visualization """ scripting.wantWholeDataset = 1 self.sidebarWin = sidebarwin x, y = self.getSidebarWinOrigSize() if not self.iactivePanel: Logging.info("Generating preview", kw="visualizer") self.iactivePanel = MIPPreviewFrame(self.parent) if not self.configPanel: self.container = wx.SashLayoutWindow(self.sidebarWin) self.configPanel = SimpleConfigurationPanel(self.container, self.visualizer, self, size=(x, y)) self.configPanel.Show() self.container.Show() return self.iactivePanel