![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Mrpaolosarino |
If I try to add these lines:
var no_tab = get_node("TabContainer/Practice /TabContainer2").get_tab_count()
var tab_control = get_node("TabContainer/Practice /TabContainer2")
for q in no_tab :
var w = tab_control.get_tab_control(q)
var e = w.get_children()
for g in e:
var y = g.get_node("Text_movable").get_text()
Practice[q] = {w:{g:y}}
print(Practice)
This will print out the following format:
{g:{w:{g:y}}}
What I intended to print is:
{g:{w:{g:y},{g:y},g:y}}}
Something in that format. I want to illiterate the “g:y” and don’t want to let it replace the current illiteration. Because what happens is every illiteration of “g:y” The existing value is changed by newer ones which is normal but what I want is to create another key of “g:y” , anyone???
EDIT:
I think it is something like adding it to dictionary etc. But on the back of my mind, I cant think of the code.