def _get_tool_bar_pane_info(self, tool_bar):
        info = aui.AuiPaneInfo()
        info.Caption(tool_bar.tool_bar_manager.name)
        info.LeftDockable(False)
        info.Name(tool_bar.tool_bar_manager.id)
        info.RightDockable(False)
        info.ToolbarPane()
        info.Top()

        return info
    def get_new_info(self):
        info = aui.AuiPaneInfo().Name(self.pane_name).DestroyOnClose(False)
        # size?

        # Configure the dock widget according to the DockPane settings.
        self.update_dock_area(info)
        self.update_dock_features(info)
        self.update_dock_title(info)
        self.update_floating(info)
        self.update_visible(info)

        return info
示例#3
0
    def show_task(self, state):
        """ Assuming no task is currently active, show the controls of the
            specified TaskState.
        """
        # Show the central pane.
        info = (aui.AuiPaneInfo().Caption("Central").Dockable(False).Floatable(
            False).Name("Central").CentrePane().Maximize())
        logger.debug("adding central pane to %s" % self.window)
        self.window._aui_manager.AddPane(state.central_pane.control, info)
        self.window._aui_manager.Update()

        # Show the dock panes.
        self._layout_state(state)
示例#4
0
文件: task.py 项目: jomason/omnivore
 def create_minibuffer_info(self):
     log.debug("Creating space for minibuffer")
     info = aui.AuiPaneInfo()
     info.Caption("Minibuffer")
     info.LeftDockable(False)
     info.Name(self.minibuffer_pane_name)
     info.RightDockable(False)
     info.Layer(99)
     info.Bottom()
     info.Hide()
     info.DockFixed(True)
     info.CaptionVisible(False)  # hides the caption bar & close button
     info.minibuffer = None
     return info
示例#5
0
    def _create(self):

        super(ApplicationWindow, self)._create()

        self._aui_manager = PyfaceAuiManager()
        self._aui_manager.SetManagedWindow(self.control)

        # Keep a reference to the AUI Manager in the control because Panes
        # will need to access it in order to lay themselves out
        self.control._aui_manager = self._aui_manager

        contents = self._create_contents(self.control)
        self._aui_manager.AddPane(contents, aui.AuiPaneInfo().CenterPane())

        self._create_trim_widgets(self.control)

        # Updating the AUI manager actually commits all of the pane's added
        # to it (this allows batch updates).
        self._aui_manager.Update()