def diff_expression(parent, expr, create_widget=False, hide_expr=False, focus_tree=False):
 dlg = FileDiffDialog(parent, expr=expr, hide_expr=hide_expr, focus_tree=focus_tree)
 if create_widget:
  return dlg
 dlg.show()
 dlg.raise_()
 return (dlg.exec_() == QtWidgets.QDialog.Accepted)

def diff_expression ( parent , expr , create_widget = False , hide_expr = False , focus_tree = False ) : dlg = FileDiffDialog ( parent , expr = expr , hide_expr = hide_expr , focus_tree = focus_tree ) if create_widget : return dlg dlg . show ( ) dlg . raise_ ( ) return ( dlg . exec_ ( ) == QtWidgets . QDialog . Accepted )
diff using an arbitrary expression .