Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
muster:9.0:notificatorapi [2019/04/23 12:29]
admin [Notificator APIs]
muster:9.0:notificatorapi [2019/04/23 12:30] (current)
admin [Notificator APIs]
Line 39: Line 39:
 ^Function name^Expected parameters^Additional returned objects^Meaning^ ^Function name^Expected parameters^Additional returned objects^Meaning^
 |getMainDialog()|None|Pointer to QT main dialog window|Returns a string containing a memory pointer to the QT QDialog object that may be used to parent your Pyside widgets| |getMainDialog()|None|Pointer to QT main dialog window|Returns a string containing a memory pointer to the QT QDialog object that may be used to parent your Pyside widgets|
 +|++example|
 +<code python>
 +import shiboken
 +from PySide import QtGui, QtCore
 +import MNotificatorAPI
 +
 +winPointer = int(MNotificatorAPI.getMainDialog())
 +if winPointer != 0:
 +    mainDialog = shiboken.wrapInstance(winPointer,​QtGui.QDialog)
 +    ​
 +# Further objects may be parented to mainDialog ​
 +</​code>​
 +++||||
 |dispatcherSendCustomMessage()|template ID, message|None|Sends a custom message to the Dispatcher global template and to an optional template ID (9.0.13+)| |dispatcherSendCustomMessage()|template ID, message|None|Sends a custom message to the Dispatcher global template and to an optional template ID (9.0.13+)|
 |++example| |++example|