fork download
  1. import tkinter as tk
  2.  
  3. window = tk.Tk()
  4. value = tk.StringVar()
  5.  
  6. entry1 = tk.Entry(window, textvariable=value)
  7. entry2 = tk.Entry(window, textvariable=value)
  8. entry3 = tk.Entry(window)
  9.  
  10. def send_value():
  11. entry3.delete(0, tk.END)
  12. entry3.insert(0, value.get())
  13.  
  14. button_ok = tk.Button(window, text='OK', command=send_value)
  15.  
  16. entry1.pack()
  17. entry2.pack()
  18. entry3.pack()
  19. button_ok.pack()
  20.  
  21. window.mainloop()
Runtime error #stdin #stdout #stderr 0.15s 23548KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
    import tkinter as tk
ModuleNotFoundError: No module named 'tkinter'