Ответ:
from tkinter import *
from tkinter.ttk import Radiobutton
window = Tk()
window.title("Фрукты")
window.geometry('250x150')
rad1 = Radiobutton(window, text='Яблоко', value=1)
rad2 = Radiobutton(window, text='Банан', value=2)
rad3 = Radiobutton(window, text='Ананас', value=3)
rad4 = Radiobutton(window, text='Груша', value=4)
rad1.grid(column=0, row=0)
rad2.grid(column=1, row=0)
rad3.grid(column=2, row=0)
rad4.grid(column=3, row=0)
window.mainloop()
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
from tkinter import *
from tkinter.ttk import Radiobutton
window = Tk()
window.title("Фрукты")
window.geometry('250x150')
rad1 = Radiobutton(window, text='Яблоко', value=1)
rad2 = Radiobutton(window, text='Банан', value=2)
rad3 = Radiobutton(window, text='Ананас', value=3)
rad4 = Radiobutton(window, text='Груша', value=4)
rad1.grid(column=0, row=0)
rad2.grid(column=1, row=0)
rad3.grid(column=2, row=0)
rad4.grid(column=3, row=0)
window.mainloop()
Объяснение: