(self)
Build Menus
Build Menus
Build Menus
def _setup_menu(self):
        """ Build Menus
        """
        process_menu = QMenu('&Process')
        process_menu.addAction('Resume', self._on_proc_resume, Qt.Key_F5)
        process_menu.addAction('Restart', self._on_proc_restart, Qt.Key_F9)
        process_menu.addAction('Detach', self._on_detach, Qt.Key_F10)

        process_menu.addSeparator()
        process_menu.addAction('Step', lambda: self.dwarf.dwarf_api('_step'), Qt.Key_F7)
        process_menu.addAction('Step call', lambda: self.dwarf.dwarf_api('_step', 'call'), Qt.Key_F8)
        process_menu.addAction('Step block', lambda: self.dwarf.dwarf_api('_step', 'block'))

        self._menu.append(process_menu)
def _setup_menu ( self ) : process_menu = QMenu ( '&Process' ) process_menu . addAction ( 'Resume' , self . _on_proc_resume , Qt . Key_F5 ) process_menu . addAction ( 'Restart' , self . _on_proc_restart , Qt . Key_F9 ) process_menu . addAction ( 'Detach' , self . _on_detach , Qt . Key_F10 ) process_menu . addSeparator ( ) process_menu . addAction ( 'Step' , lambda : self . dwarf . dwarf_api ( '_step' ) , Qt . Key_F7 ) process_menu . addAction ( 'Step call' , lambda : self . dwarf . dwarf_api ( '_step' , 'call' ) , Qt . Key_F8 ) process_menu . addAction ( 'Step block' , lambda : self . dwarf . dwarf_api ( '_step' , 'block' ) ) self . _menu . append ( process_menu )