I do not know how to parse an Array string to an word made by char. I have the following
from tkinter import *
def key_return(event):
stringToParse = String_entry.get()
root = Tk()
#global stringToParse
String_entry = Entry(root, width=20, font= ('Helvetica 13'))
String_entry.insert(INSERT, "insert text")
String_entry.bind('<Return>', key_return)
String_entry.pack()
root.mainloop()
I need to use the Array from Entry in the following code and I do not know how to make it from “var_2” to ‘var_2’ ( from double comma to single comma )
# Set up model variables and initialize them with 0
opts = {'ModelVars': {'var_1':0, stringToParse: 0,'var_3':0}}
As you can see the opts is taking char like ‘var_1’ and I do not know how to parse the Entry input to something like ‘var_2’
Currently if I use directly the stringToParse it gives me an error of hashing.
1