This is such a basic simple thing...but I just can't crack it.
I have a dict. Both the Key and the Value are strings.
I want to show the keys in a box on a screen.
No matter what I do I get unicode representations: [u'sonnet'] rather than just the string "sonnet"
Here is my current tester code:
Code: Select all
default poemlist = {"sonnet": "summer"},{"haiku": "trees"}
screen poems():
frame:
xalign 1.0
yalign 0.0
vbox:
label "Poems"
for i in poemlist:
text "{0!s}".format(i.keys())
# The game starts here.
label start:
show screen poems()
"Just testing it all out"
return
Code: Select all
text "{0!s}".format(i.keys())