Re: [Maya-Python] mayapy interpreter error with Anaconda

2018-02-21 Thread Mike Bourbeau
I'm having an issue with PyCharm and autocomplete. The stubs work for autocompletion, but my code won't execute. I've added the stubs to the PYTHONPATH in my

Re: [Maya-Python] Assigning TAB as hotkey

2015-06-12 Thread Mike Bourbeau
PySide version: from PySide import QtCore, QtGui from shiboken import wrapInstance import maya.OpenMayaUI as mui mainWin = wrapInstance(long(mui.MQtUtil.mainWindow()), QtGui.QWidget) action = QtGui.QAction(mainWin) action.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Tab))

Re: [Maya-Python] Assigning TAB as hotkey

2015-06-12 Thread Mike Bourbeau
What should I do if I want to open a tool with TAB, but then have TAB be a hotkey that is used within that tool's UI? EX: Maya starts you open the tool with TAB type in a word into a QLineEdit box highlight a word in a QCompleter by using the arrow keys then use TAB to select that word. I

Re: [Maya-Python] Assigning TAB as hotkey

2015-06-12 Thread Mike Bourbeau
from PySide import QtCore, QtGui from shiboken import wrapInstance import maya.OpenMayaUI as mui mainWin = wrapInstance(long(mui.MQtUtil.mainWindow()), QtGui.QWidget) action = QtGui.QAction(mainWin) action.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Tab))