#NEWLINE# def compareDTSes( self ) : #NEWLINE# #INDENT# countLoadedDTSes = len ( self . modelManager . loadedModelXbrls ) #NEWLINE# if ( countLoadedDTSes != 2 ) : #NEWLINE# #INDENT# tkinter . messagebox . showwarning ( _ ( 'arelle - Warning' ) , _ ( 'Two DTSes are required for the Compare DTSes operation, {0} found' ) . format ( countLoadedDTSes ) , parent = self . parent ) #NEWLINE# return False #NEWLINE# #UNINDENT# versReportFile = self . uiFileDialog ( 'save' , title = _ ( 'arelle - Save Versioning Report File' ) , initialdir = self . config . setdefault ( 'versioningReportDir' , '.' ) , filetypes = [ ( _ ( 'Versioning report file' ) , '*.xml' ) ] , defaultextension = '.xml' ) #NEWLINE# if ( not versReportFile ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# self . config [ 'versioningReportDir' ] = os . path . dirname ( versReportFile ) #NEWLINE# self . saveConfig ( ) #NEWLINE# thread = threading . Thread ( target = ( lambda : self . backgroundCompareDTSes ( versReportFile ) ) ) #NEWLINE# thread . daemon = True #NEWLINE# thread . start ( )