# Enabling Components From Another Window

**URL:** <https://forum.inductiveautomation.com/t/enabling-components-from-another-window/8692>\
**Category:** Ignition\
**Created:** [July 9, 2014, 12:51pm UTC](https://forum.inductiveautomation.com/t/enabling-components-from-another-window/8692 "2014-07-09T12:51:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClemsonTim80](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@ClemsonTim80](https://forum.inductiveautomation.com/u/ClemsonTim80)\
**Post date:** [July 9, 2014, 12:51pm UTC](https://forum.inductiveautomation.com/t/enabling-components-from-another-window/8692/1 "2014-07-09T12:51:29Z")

</div>

I have a text field named txtSanitizerConc on Main Window 1 and I can enable from another window using the following :

system.gui.getWindow(‘Main Windows/Main Window 1’).rootContainer.getComponent(‘txtSanitizerConc’).componentEnabled = True

I have two radio buttons (rdoDrainsCleanYes and rdoDrainsCleanNo) on that same Main Window 1 that are both inside a container named ctrDrainsClean

The following code returns “Attribute Error: 'NoneType” object has no attribute componentEnabled

system.gui.getWindow(‘Main Windows/Main Window 1’).rootContainer.getComponent(‘ctrDrainsClean.rdoDrainsCleanYes’).componentEnabled = True

I realize that I am not specifying the path the the radio button correctly, but I’m fairly new to Ignition

---

<div class="post-metadata">

**Author:** ![ClemsonTim80](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@ClemsonTim80](https://forum.inductiveautomation.com/u/ClemsonTim80)\
**Post date:** [July 9, 2014, 1:03pm UTC](https://forum.inductiveautomation.com/t/enabling-components-from-another-window/8692/2 "2014-07-09T13:03:08Z")

</div>

I think I figured it out - this seems to work OK

system.gui.getWindow(‘Main Windows/Main Window 1’).rootContainer.getComponent(‘ctrDrainsClean’).getComponent(‘rdoDrainsCleanYes’).componentEnabled = True
