Hi Justin, 
               thanks again for all the assistance. Just want to ask one 
last question.  I've attempted to use the QPen to draw a border for my 
selection thumbnails but a problem I'm running into is that it doesn't 
clean it self up very well when I attempt to draw a selection box. Is there 
a flag I could use to improve this? I've attempted to use painter.begin and 
painter.end but it just makes my thumbnail disappear. 

This is the code of my latest attempt. 

        if opts.state & QtGui.QStyle.State_Selected:
            painter.beginNativePainting()
            painter.setRenderHint(painter.Antialiasing, True)
            pen = QtGui.QPen(QtCore.Qt.white, 1, QtCore.Qt.SolidLine)
            pen.setCosmetic(True)
            painter.setPen(pen)
            painter.drawRect(opts.rect)
            painter.endNativePainting()


Thanks again!  

-- 
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/2433fc89-fcd0-41d9-905d-39186263aa55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to