def show(): se = scriptEditor.scriptEditorClass(parent=None) se.installEventFilter(MaxDialogEvents()) se.runCommand('import MaxPlus') se.MaxEventFilter = MaxDialogEvents() se.installEventFilter(se.MaxEventFilter) se.show()
def show(): se = scriptEditor.scriptEditorClass(parent=MaxPlus.GetQMaxWindow()) se.installEventFilter(MaxDialogEvents()) se.runCommand('import MaxPlus') se.MaxEventFilter = MaxDialogEvents() se.installEventFilter(se.MaxEventFilter) se.setWindowStyle() se.show()
def initUi(self): from pw_multiScriptEditor import scriptEditor self.mainWindow = qtutils.sessionWindow() self.widget = scriptEditor.scriptEditorClass() self.dialog = QtWidgets.QDockWidget("%s" % self.widget.windowTitle(), self.mainWindow) self.mainWindow.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.dialog) self.dialog.setWidget(self.widget)
def showDickControl(): if pm.window(name, q=1, ex=1): pm.deleteUI(name) from pw_multiScriptEditor import scriptEditor reload(scriptEditor) editor = scriptEditor.scriptEditorClass(parent=getMayaWindow()) clearDoc() pm.dockControl(dockName, area='left', content=editor.objectName(), width=700, label='Multi Script Editor', allowedArea=['right', 'left'])
def showWindow(): from pw_multiScriptEditor import scriptEditor reload(scriptEditor) editor = scriptEditor.scriptEditorClass(parent=getMayaWindow()) editor.show()
def showWindow(): se = scriptEditor.scriptEditorClass(qNuke) se.runCommand('import nuke') se.show()
from pw_multiScriptEditor import scriptEditor from Qt import QtWidgets app = QtWidgets.QApplication([]) w = scriptEditor.scriptEditorClass() w.setWindowStyle() w.show() app.exec_()