# How do I list UI elements in a window?

**URL:** https://forum.highend3d.com/t/how-do-i-list-ui-elements-in-a-window/48660
**Category:** Maya
**Tags:** python
**Created:** [December 21, 2010, 9:08pm UTC](https://forum.highend3d.com/t/how-do-i-list-ui-elements-in-a-window/48660 "2010-12-21T21:08:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alcino-alves](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/ecae2f/32.png) [@alcino-alves](https://forum.highend3d.com/u/alcino-alves)
#### Post date: [December 21, 2010, 9:08pm UTC](https://forum.highend3d.com/t/how-do-i-list-ui-elements-in-a-window/48660/1 "2010-12-21T21:08:27Z")

</div>

hey guys

I created a window in Maya, and I need to list all checkboxes in it.

Is there a way to do that only for this window?

thanks

---

<div class="post-metadata">

### Author: ![highend3djojan-](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/h/c68b51/32.png) [@highend3djojan-](https://forum.highend3d.com/u/highend3djojan-)
#### Post date: [December 22, 2010, 8:42am UTC](https://forum.highend3d.com/t/how-do-i-list-ui-elements-in-a-window/48660/2 "2010-12-22T08:42:52Z")

</div>

name your checkboxes in some way, for e.g;  
mc.checkBox('chkAAOpen')  
mc.checkBox('chkAASave')  
etc

then use this:  
chks = [x for x in mc.lsUI(typ='control') if x.startswith('chkAA')]
