Decoupled Editor Window


Instructions how to decouple the "Plugin Editor" window into a stand-alone window. If you do not like the behavior of the detached editor dock, put this in your startup script:

##---IMPORTS

from PyQt4.QtCore import Qt
from PyQt4.QtGui import QMainWindow
import spykeviewer.api as spyke

##---EDITOR-ALTERNATIVE

# create a new window
w = QMainWindow(spyke.window)
w.setWindowTitle('EDITOR WINDOW')
w.addDockWidget(Qt.RightDockWidgetArea, spyke.window.pluginEditorDock)
w.addToolBar(spyke.window.pluginToolBar)
w.show()

# save the window reference for later use
spyke.window.editor_window = w

##---END

All files

VersionViewer versionUpload dateSize
alpha 0.3.0 June 18, 2013 427 bytes

Comments

New comment

Please log in to leave a comment.

Author: Philipp Meier

Website: http://www.ni.tu-berlin.de/

Download most recent version: alpha

License: BSD