Yeah I'm creating my own dialog now. Thanks Justin.

On Tuesday, June 16, 2015 3:20:11 PM, Justin Israel wrote:
I don't think there is any public part of its api that gives you that
option. You would either need to hack on it in a subclass, or the
instance of the QMessageBox, to try and find the child button to
click() . Or you would have to design your own that just shoes more info.


On Wed, 17 Jun 2015 1:45 AM Eric Thivierge <[email protected]
<mailto:[email protected]>> wrote:

    Is there a way to open a QMessagebox while calling
    setDetailedText() and
    have those details showing by default?

    Sample Code:
    msgBox = QtGui.QMessageBox()
    msgBox.setText("The document has been modified.")
    msgBox.setInformativeText("Do you want to save your changes?")
    msgBox.setStandardButtons(QtGui.QMessageBox.Save |
    QtGui.QMessageBox.Discard | QtGui.QMessageBox.Cancel)
    msgBox.setDefaultButton(QtGui.QMessageBox.Save)
    msgBox.setDetailedText('blah blha blhab lhab a;lbh')

    msgBox.show()

    --
    Eric Thivierge
    Rigging Lead


    --
    You received this message because you are subscribed to the Google
    Groups "Python Programming for Autodesk Maya" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:python_inside_maya%[email protected]>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/python_inside_maya/55802866.9040402%40hybride.com.
    For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2N%2BnJRy6L1tMCOwxELe4W9GK%2BVWWGvB3cRWLJ1CSfWVw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2N%2BnJRy6L1tMCOwxELe4W9GK%2BVWWGvB3cRWLJ1CSfWVw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Python 
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/558077A1.4080108%40hybride.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to