# Cannot pull activeBrowserNode from qMRMLSequenceBrowserToolBar in Python

**URL:** <https://discourse.slicer.org/t/cannot-pull-activebrowsernode-from-qmrmlsequencebrowsertoolbar-in-python/21857>\
**Category:** Development\
**Tags:** python\
**Created:** [February 8, 2022, 8:00pm UTC](https://discourse.slicer.org/t/cannot-pull-activebrowsernode-from-qmrmlsequencebrowsertoolbar-in-python/21857 "2022-02-08T20:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanbmnt](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nathanbmnt](https://discourse.slicer.org/u/nathanbmnt)\
**Post date:** [February 8, 2022, 8:00pm UTC](https://discourse.slicer.org/t/cannot-pull-activebrowsernode-from-qmrmlsequencebrowsertoolbar-in-python/21857/1 "2022-02-08T20:00:58Z")

</div>

Hello,  
I have a Python program where I want to get the active browser node of a qMRMLSequenceBrowserToolBar. However this variable is inaccessible from Python. Any ideas on how to get this variable?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/3/733ea4718045df8fcd12b89c35544d2f814510e4.png)  
[https://apidocs.slicer.org/master/qMRMLSequenceBrowserToolBar\_8h\_source.html](https://apidocs.slicer.org/master/qMRMLSequenceBrowserToolBar_8h_source.html)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 8, 2022, 8:09pm UTC](https://discourse.slicer.org/t/cannot-pull-activebrowsernode-from-qmrmlsequencebrowsertoolbar-in-python/21857/2 "2022-02-08T20:09:25Z")

</div>

Good catch. This method was not marked for Python wrapping. I’ve [added it now](https://github.com/Slicer/Slicer/commit/fab4ec043672efc3434ae29fea498979b9ae7b17), so the method will be available in Python from tomorrow in the Slicer Preview Release.

Until then, you can get the active browser node by connecting to function to the `activeBrowserNodeChanged(vtkMRMLNode* activeBrowserNode)` signal.
