If you are trying to randomly query the state of the keyboard modifiers and
mouse buttons, then you can query them on the QApplication class as static
methods :

http://qt-project.org/doc/qt-4.8/qapplication.html#keyboardModifiers

http://qt-project.org/doc/qt-4.8/qapplication.html#mouseButtons

But if this actually how you are going to use them, by starting a timer
that checks repeatedly? The other way is to watch for the actual events to
occur, and react.

-- 
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/CAPGFgA2cUSmQYzN%3DkmKE%2BKbdMvAxqX5ieANcr6ueXkVqK8jKHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to