Beispiel #1
0
    def _menu_bar_manager_default(self):
        """ Trait initialiser. """

        return MenuBarManager(self._file_menu,
                              self._label_menu,
                              self._undo_menu,
                              window=self)
Beispiel #2
0
 def _menu_bar_manager_default(self):
     """ Setup the menus for the application. """
     return MenuBarManager(self._file_menu,
                           self._edit_menu,
                           self._macro_menu,
                           self._view_menu,
                           window=self)
    def _menu_bar_manager_default(self):
        """ Trait initializer. """

        file_menu = MenuManager(
            self._new_person_action, self._exit_action,
            name='&File', id='FileMenu'
        )
        view_menu = ViewMenuManager(name='&View', id='ViewMenu', window=self)

        return MenuBarManager(file_menu, view_menu, window=self)
    def _menu_bar_manager_default(self):
        """ Trait initializer. """

        file_menu = MenuManager(
            self._new_person_action,
            self._exit_action,
            name="&File",
            id="FileMenu",
        )
        view_menu = ViewMenuManager(name="&View", id="ViewMenu", window=self)

        return MenuBarManager(file_menu, view_menu, window=self)
Beispiel #5
0
    def _create_menu_bar_manager(self):
        """ Create a menu bar manager from the builder's action sets. """

        return MenuBarManager(window=self.window)