#NEWLINE# def viewTuplesGrid( modelXbrl , tabWin , tupleObjectId , lang = None ) : #NEWLINE# #INDENT# modelTuple = modelXbrl . modelObject ( tupleObjectId ) #NEWLINE# if ( modelTuple is not None ) : #NEWLINE# #INDENT# modelXbrl . modelManager . showStatus ( _ ( 'viewing tuples {0}' ) . format ( modelTuple . localName ) ) #NEWLINE# parentFacts = modelXbrl . facts #NEWLINE# try : #NEWLINE# #INDENT# parentFacts = modelTuple . getparent ( ) . modelTupleFacts #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# view = ViewTuplesGrid ( modelXbrl , modelTuple , modelTuple , parentFacts , lang ) #NEWLINE# menu = view . contextMenu ( ) #NEWLINE# menu . add_cascade ( label = _ ( 'Close' ) , underline = 0 , command = view . close ) #NEWLINE# view . menuAddLangs ( ) #NEWLINE# view . view ( ) #NEWLINE# view . blockSelectEvent = 1 #NEWLINE# view . blockViewModelObject = 0 #NEWLINE# view . viewFrame . bind ( '<Enter>' , view . cellEnter , '+' ) #NEWLINE# view . viewFrame . bind ( '<Leave>' , view . cellLeave , '+' ) #NEWLINE# return view #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# modelXbrl . modelManager . showStatus ( _ ( 'viewing tuples requires selecting the tuple to report' ) , clearAfter = 2000 )