(self)
Build Menus
Build Menus
Build Menus
def _setup_menu(self):
        """ Build Menus
        """
        # additional menus
        file_menu = QMenu('&Device')
        save_apk = QAction("&Save APK", self)
        save_apk.triggered.connect(self.save_apk)
        decompile_apk = QAction("&Decompile APK", self)
        decompile_apk.triggered.connect(self.decompile_apk)

        file_menu.addAction(save_apk)
        file_menu.addAction(decompile_apk)

        self._menu.append(file_menu)

        super()._setup_menu()

        java_menu = QMenu('&Java')
        java_menu.addAction('Trace', self._on_java_trace)
        java_menu.addSeparator()
        java_menu.addAction('Classes', self._on_java_classes)
        self._menu.append(java_menu)
def _setup_menu ( self ) : # additional menus file_menu = QMenu ( '&Device' ) save_apk = QAction ( "&Save APK" , self ) save_apk . triggered . connect ( self . save_apk ) decompile_apk = QAction ( "&Decompile APK" , self ) decompile_apk . triggered . connect ( self . decompile_apk ) file_menu . addAction ( save_apk ) file_menu . addAction ( decompile_apk ) self . _menu . append ( file_menu ) super ( ) . _setup_menu ( ) java_menu = QMenu ( '&Java' ) java_menu . addAction ( 'Trace' , self . _on_java_trace ) java_menu . addSeparator ( ) java_menu . addAction ( 'Classes' , self . _on_java_classes ) self . _menu . append ( java_menu )