#NEWLINE# def contextMenu( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . menu #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . menu = Menu ( self . viewFrame , tearoff = 0 ) #NEWLINE# self . treeView . bind ( self . modelXbrl . modelManager . cntlr . contextMenuClick , ex . popUpMenu , '+' ) #NEWLINE# return self . menu #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# self . modelXbrl . info ( 'arelle:internalException' , _ ( 'Exception creating context menu in %(title)s: %(error)s' ) , modelObject = self . modelXbrl . modelDocument , title = self . tabTitle , error = str ( ex ) ) #NEWLINE# self . menu = None #NEWLINE# return None