-
Anonymous
Как добавить это поле со всеми зависимостями в цикл, чтобы не приходилось вручную вводить большое количество полей? [зак
Сообщение
Anonymous »
Код: Выделить всё
dtv1 = StringVar()
dt1 = DateEntry(canv, justify="center", selectmode='day', background="white", foreground="black", font="arial 7",
textvariable=dtv1, state="readonly")
dt1Id = canv.create_window(5, 60, anchor=NW, window=dt1, width=70, height=25)
#Tkinter Python
Умножать можно только сами поля. А вот Stringvar, textvariable - нет
Подробнее здесь:
https://stackoverflow.com/questions/793 ... nt-have-to
1737470632
Anonymous
[code]dtv1 = StringVar()
dt1 = DateEntry(canv, justify="center", selectmode='day', background="white", foreground="black", font="arial 7",
textvariable=dtv1, state="readonly")
dt1Id = canv.create_window(5, 60, anchor=NW, window=dt1, width=70, height=25)
[/code]
#Tkinter Python
Умножать можно только сами поля. А вот Stringvar, textvariable - нет[code]your text[/code]
Подробнее здесь: [url]https://stackoverflow.com/questions/79372482/how-can-i-add-this-field-with-all-dependencies-to-a-loop-so-that-i-dont-have-to[/url]