CuraApplication: Some formatting around messageBox functions

Just preventing some long lines.
This commit is contained in:
Thomas Karl Pietrowski 2019-09-29 21:20:11 +02:00 committed by GitHub
parent 3c17af6192
commit f57528ef1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -632,9 +632,17 @@ class CuraApplication(QtApplication):
## A reusable dialogbox ## A reusable dialogbox
# #
showMessageBox = pyqtSignal(str, str, str, str, int, int, arguments = ["title", "text", "informativeText", "detailedText", "buttons", "icon"]) showMessageBox = pyqtSignal(str,str, str, str, int, int,
arguments = ["title", "text", "informativeText", "detailedText","buttons", "icon"])
def messageBox(self, title, text, informativeText = "", detailedText = "", buttons = QMessageBox.Ok, icon = QMessageBox.NoIcon, callback = None, callback_arguments = []): def messageBox(self, title, text,
informativeText = "",
detailedText = "",
buttons = QMessageBox.Ok,
icon = QMessageBox.NoIcon,
callback = None,
callback_arguments = []
):
self._message_box_callback = callback self._message_box_callback = callback
self._message_box_callback_arguments = callback_arguments self._message_box_callback_arguments = callback_arguments
self.showMessageBox.emit(title, text, informativeText, detailedText, buttons, icon) self.showMessageBox.emit(title, text, informativeText, detailedText, buttons, icon)