def diff_commits(parent, a, b):
 dlg = FileDiffDialog(parent, a=a, b=b)
 dlg.show()
 dlg.raise_()
 return (dlg.exec_() == QtWidgets.QDialog.Accepted)

def diff_commits ( parent , a , b ) : dlg = FileDiffDialog ( parent , a = a , b = b ) dlg . show ( ) dlg . raise_ ( ) return ( dlg . exec_ ( ) == QtWidgets . QDialog . Accepted )
show a dialog for diffing two commits .