Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- import random
- root = Tk()
- root.resizable(width=False, height=False)
- root.title("Название")
- root.geometry("640x420+300+300")
- calculated_text = Text(root,height=20, width=77)
- def erase():
- calculated_text.delete('1.0', END)
- def timetable():
- pass
- var = IntVar()
- var.set(0)
- r1 = Radiobutton(root, text='', width=15, height=1, indicatoron=0, variable=var, value=0, command=timetable)
- r2 = Radiobutton(root, text='', width=15, height=1, indicatoron=0, variable=var, value=1, command=timetable)
- r3 = Radiobutton(root, text='', width=15, height=1, indicatoron=0, variable=var, value=2, command=timetable)
- r4 = Radiobutton(root, text='', width=15, height=1, indicatoron=0, variable=var, value=3, command=timetable)
- r5 = Radiobutton(root, text='', width=15, height=1, indicatoron=0, variable=var, value=4, command=timetable)
- r6 = Radiobutton(root, text='', width=15, height=1, indicatoron=0, variable=var, value=5, command=timetable)
- r1.grid(row=1,column=0, padx=1, pady=5)
- r2.grid(row=1,column=1, padx=1, pady=5)
- r3.grid(row=1,column=2, padx=1, pady=5)
- r4.grid(row=2,column=0, padx=1, pady=5)
- r5.grid(row=2,column=1, padx=1, pady=5)
- r6.grid(row=2,column=2, padx=1, pady=5)
- day_label = Label(text=" Вдн", font="Arial 14")
- day_label.grid(row=0, column=1, sticky="w")
- calculated_text.grid(row=4, column=0, sticky='nsew', columnspan=3)
- scrollb = Scrollbar(root, command=calculated_text.yview)
- scrollb.grid(row=5, column=4, sticky='nsew')
- calculated_text.configure(yscrollcommand=scrollb.set)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement