Compare commits

..

No commits in common. "1b8ce6367345a6124c7e7b102a372239067c191a" and "05bad3c7b22596c9467c6912c42af9044cffe4a9" have entirely different histories.

View File

@ -7,21 +7,14 @@ cpusVar = tk.StringVar(w)
cycVar = tk.StringVar(w) cycVar = tk.StringVar(w)
N_tsVar = tk.StringVar(w) N_tsVar = tk.StringVar(w)
T_cycVar = tk.StringVar(w) T_cycVar = tk.StringVar(w)
settings={ settings = 0
'p_name': 'default',
'cpus': 0,
'cyc': 0,
'N_ts': 0,
'T_cyc': 0
}
def getvars(): def getvars():
global settings p_name = p_nameVar.get()
settings['p_name'] = p_nameVar.get() cpus = cpusVar.get()
settings['cpus'] = cpusVar.get() cyc = cycVar.get()
settings['cyc'] = cycVar.get() N_ts = N_tsVar.get()
settings['N_ts'] = N_tsVar.get() T_cyc = T_cycVar.get()
settings['T_cyc'] = T_cycVar.get() settings = (p_name, cpus, cyc, N_ts, T_cyc)
print(settings) print(settings)
field1 = tk.Label(w, text="project name").grid(row=0, column=0) field1 = tk.Label(w, text="project name").grid(row=0, column=0)
@ -43,6 +36,3 @@ button = tk.Button(w, text="Get vars", command=getvars).grid(row=5)
w.mainloop() w.mainloop()
print(settings)
print(settings['cpus'])