Ответ:
from tkinter import *
window = Tk()
def button_click():
string = text_box.get()
string_list = string.split()
number_list = [int(i) for i in string_list]
print(number_list)
text_box = Entry(window, width=10)
text_box.pack()
btn = Button(text="Обчислити", command=button_click)
btn.pack()
window.mainloop()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
from tkinter import *
window = Tk()
def button_click():
string = text_box.get()
string_list = string.split()
number_list = [int(i) for i in string_list]
print(number_list)
text_box = Entry(window, width=10)
text_box.pack()
btn = Button(text="Обчислити", command=button_click)
btn.pack()
window.mainloop()