View Issue Details

IDProjectCategoryView StatusLast Update
0001232Slicer4Core: Scripting (Wrapping, Python)public2014-03-06 04:51
Reporterdpace Assigned Tojcfr  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.1.0 
Summary0001232: Allow python modules to expose public functions
Description

Ex. allow introspection into scripted python modules, so that one can call module functions from the python console, using something like

slicer.modules.moduleName.publicModuleFunction(parameters)

TagsNo tags attached.

Activities

pieper

pieper

2012-10-01 10:31

administrator   ~0006298

For my purposes, the call below provides all the needed functionality:

dicomWidget = slicer.modules.dicom.widgetRepresentation().self()

Looks like Jc added this back in March (thanks Jc!)

https://github.com/Slicer/Slicer/commit/d2c7ae3780071113124493e520ca5fc1ea957496

jcfr

jcfr

2012-10-01 13:46

administrator   ~0006305

Fixed in r19722
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=19722

pieper

pieper

2012-10-01 13:58

administrator   ~0006307

Works for me :)

jcfr

jcfr

2012-10-02 06:52

administrator   ~0006320

Danielle> Would be great if you could close the issue if it works for you.
Thanks

jcfr

jcfr

2014-03-06 04:50

administrator   ~0010729

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2011-06-30 10:50 dpace New Issue
2011-07-09 02:40 jcfr Status new => assigned
2011-07-09 02:40 jcfr Assigned To => jcfr
2012-08-21 12:00 jcfr Target Version => Slicer 4.4.0
2012-09-13 11:18 jcfr Category Base Code => Scripting (Wrapping, Python)
2012-10-01 10:31 pieper Note Added: 0006298
2012-10-01 13:45 jcfr Target Version Slicer 4.4.0 => Slicer 4.2.0 - coming release
2012-10-01 13:46 jcfr Note Added: 0006305
2012-10-01 13:46 jcfr Status assigned => resolved
2012-10-01 13:46 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-10-01 13:46 jcfr Resolution open => fixed
2012-10-01 13:58 pieper Note Added: 0006307
2012-10-01 13:58 pieper Status resolved => closed
2012-10-02 06:51 jcfr Fixed in Version Slicer 4.2.0 - coming release => Slicer 4.1.0
2012-10-02 06:51 jcfr Target Version Slicer 4.2.0 - coming release => Slicer 4.4.0
2012-10-02 06:52 jcfr Note Added: 0006320
2012-10-02 06:52 jcfr Status closed => resolved
2014-03-06 04:50 jcfr Note Added: 0010729
2014-03-06 04:51 jcfr Status resolved => closed