# Python text panel updater

**URL:** <https://discourse.mcneel.com/t/python-text-panel-updater/81657>\
**Category:** Grasshopper Developer\
**Created:** [April 10, 2019, 10:07am UTC](https://discourse.mcneel.com/t/python-text-panel-updater/81657 "2019-04-10T10:07:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marleenandela](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marleenandela/32/141730_2.png) [@marleenandela](https://discourse.mcneel.com/u/marleenandela)\
**Post date:** [April 10, 2019, 10:07am UTC](https://discourse.mcneel.com/t/python-text-panel-updater/81657/1 "2019-04-10T10:07:09Z")

</div>

Hi, I want to make a python script for updating Grasshopper panels from an Excel sheet. I modified a script that I found on the old Grasshopper forum by [Anders Holden Deleuran](https://www.grasshopper3d.com/forum/topic/listForContributor?user=119lvf3iv58ml) that is updating slider values. I want to do the same for the text panels in my definition, but my script is only outputting the first letter of the text string. How can I output the entire string/array? [panelUpdater.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/1/b1ac30bc95869034687350b97126f7c2129f520f.gh) (8.4 KB)

Thanks!  
Marleen

---

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [April 10, 2019, 10:31am UTC](https://discourse.mcneel.com/t/python-text-panel-updater/81657/2 "2019-04-10T10:31:17Z")

</div>

My old examples (and your implementation) was designed to operate on lists of canvas objects and setting their values. So you just need to set the input parameters access type to `List Access` and you should be good to go:

 ![2019-04-10%2012_27_52-Grasshopper%20-%20190410_PanelUpdater_Deleuran_](https://global.discourse-cdn.com/mcneel/original/3X/8/7/87ffbca9af56afda6e5e68c4468adc7005ea609f.png)

[190410\_PanelUpdater\_Deleuran.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/c/ecbdc2b7b12d8b36c98b6f599a3cc06f8fba6a54.gh) (6.6 KB)

**Edit:** Also your GHPython editor appears to open off-screen (on a second monitor maybe?), I retrieved your code by enabling the `Show "code" input parameter` and copying it from there into a new GHPython component.

---

<div class="post-metadata">

**Author:** ![marleenandela](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marleenandela/32/141730_2.png) [@marleenandela](https://discourse.mcneel.com/u/marleenandela)\
**Post date:** [April 10, 2019, 11:41am UTC](https://discourse.mcneel.com/t/python-text-panel-updater/81657/3 "2019-04-10T11:41:01Z")

</div>

Thank you for your quick reply. That solved it, great!  
All the best,  
Marleen
