(self)
ContextMenu DumpToFile
ContextMenu DumpToFile
ContextMenu DumpToFile
def on_cm_dump_to_file(self):
        """ ContextMenu DumpToFile
        """
        accept, _input = InputDialog.input(hint='length of bytes to dump', placeholder='1024')

        if not accept:
            return

        try:
            _len = int(_input)
        except:
            self.display_error('Invalid length provided')
            _len = 0
        if _len > 0:
            self.debug_panel.dump_data(self.caret.position, _len)
def on_cm_dump_to_file ( self ) : accept , _input = InputDialog . input ( hint = 'length of bytes to dump' , placeholder = '1024' ) if not accept : return try : _len = int ( _input ) except : self . display_error ( 'Invalid length provided' ) _len = 0 if _len > 0 : self . debug_panel . dump_data ( self . caret . position , _len )