changed "display_message()" on PyQt utils
from:
def display_message(title:str, message:str, buttons=None):
display = QMessageBox()
display.setWindowTitle(title)
display.setText(message)
if buttons is not None:
display.setStandardButtons(buttons)
return display.exec_()
else:
display.exec_()
return
to:
def display_message(title:str, message:str, informative_message:str=None, detailed_message:str=None, icon=None, buttons=None):
display = QMessageBox()
display.setWindowTitle(title)
display.setText(message)
if informative_message is not None: display.setInformativeText(informative_message)
if detailed_message is not None: display.setDetailedText(detailed_message)
if icon is not None: display.setIcon(icon)
if buttons is not None:
display.setStandardButtons(buttons)
return display.exec_()
else:
display.exec_()
return