mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-23 04:38:01 +08:00
Merge branch 'patch-6' of https://github.com/thopiekar/Cura into thopiekar-patch-6
This commit is contained in:
commit
d9676a3336
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user