# Anyone here familiar with pysimplegui?

**URL:** <https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051>\
**Category:** Factual Questions\
**Created:** [January 11, 2023, 7:11pm UTC](https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051 "2023-01-11T19:11:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [January 11, 2023, 7:11pm UTC](https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051/1 "2023-01-11T19:11:29Z")

</div>

I’m beating my head against my keyboard trying to do something which should be trivial, but I can’t get it to work - adding a ‘text’ element to a ‘frame’.

Whenever I do this, I get an "Your row is not an iterable (e.g a list)” error, to which I want to reply “Yes, I know you, stupid machine, I don’t want you to iterate it - just display the damn thing!”

---

<div class="post-metadata">

**Author:** ![Pleonast](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pleonast/32/1183_2.png) [@Pleonast](https://boards.straightdope.com/u/Pleonast)\
**Post date:** [January 11, 2023, 7:14pm UTC](https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051/2 "2023-01-11T19:14:21Z")

</div>

I know nothing about that package, but have you tried putting it in a list?

---

<div class="post-metadata">

**Author:** ![Dorjan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dorjan/32/12440_2.png) [@Dorjan](https://boards.straightdope.com/u/Dorjan)\
**Post date:** [January 11, 2023, 7:18pm UTC](https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051/3 "2023-01-11T19:18:58Z")

</div>

> [@beowulff](#):
>
> "Your row is not an iterable (e.g a list)”

What Pleonast said. Wrap the ‘text’ element in a list before passing it to the frame.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [January 11, 2023, 7:38pm UTC](https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051/4 "2023-01-11T19:38:33Z")

</div>

I’m very much a Python newbie. I can get stuff to work by painstakingly modifying example code.  
So… how would I go about putting a string in a list?

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [January 11, 2023, 7:43pm UTC](https://boards.straightdope.com/t/anyone-here-familiar-with-pysimplegui/978051/5 "2023-01-11T19:43:02Z")

</div>

Oh, duh.  
Put it in Brackets.  
Yes, that worked.  
Thanks.
