Commit 87233102 authored by jcfr's avatar jcfr
Browse files

ENH: slicerqt.py - method selectModule accept either moduleName or moduleInstance

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15415 3bd1e089-480b-0410-8dfb-8563597acbee
parent 2f16ccde
......@@ -17,7 +17,10 @@ def mainWindow():
print "Failed to obtain reference to '%s'" % _objectName
return None
def selectModule(moduleName):
def selectModule(module):
moduleName = module
if not isinstance(module, basestring):
moduleName = module.name
w = mainWindow()
if not w: return
w.moduleSelector().selectModule(moduleName)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment