Как я могу более эффективно заявить о своих входных боксах? В настоящее время я вручную вставляю все поля ввода по одному, это лучший способ? или у вас есть предложения?
Изображений
Мой код
#Declare all entryboxes (Stupid but its worked. Going to loop it after everything completed)
def AllEntryBoxes():
# ==========Key 1 entries boxes only==================
global key1EntryName, key2EntryName, key3EntryName, key4EntryName, key5EntryName, key1EntryStartIndex, key2EntryStartIndex, key3EntryStartIndex, key4EntryStartIndex, key5EntryStartIndex, key1EntryEndIndex, key2EntryEndIndex, key3EntryEndIndex, key4EntryEndIndex, key5EntryEndIndex
key1EntryName = Entry(jsonframe)
key1EntryName.place(x=340, y=262)
key1EntryStartIndex = Entry(jsonframe)
key1EntryStartIndex.place(x=480, y=262)
key1EntryEndIndex = Entry(jsonframe)
key1EntryEndIndex.place(x=620, y=262)
# ==========Key 2 entries boxes only==================
key2EntryName = Entry(jsonframe)
key2EntryName.place(x=340, y=310)
key2EntryStartIndex = Entry(jsonframe)
key2EntryStartIndex.place(x=480, y=310)
key2EntryEndIndex = Entry(jsonframe)
key2EntryEndIndex.place(x=620, y=310)
# ==========Key 3 entries boxes only==================
key3EntryName = Entry(jsonframe)
key3EntryName.place(x=340, y=362)
key3EntryStartIndex = Entry(jsonframe)
key3EntryStartIndex.place(x=480, y=362)
key3EntryEndIndex = Entry(jsonframe)
key3EntryEndIndex.place(x=620, y=362)
# ==========Key 4 entries boxes only==================
key4EntryName = Entry(jsonframe)
key4EntryName.place(x=340, y=410)
key4EntryStartIndex = Entry(jsonframe)
key4EntryStartIndex.place(x=480, y=410)
key4EntryEndIndex = Entry(jsonframe)
key4EntryEndIndex.place(x=620, y=410)
# ==========Key 5 entries boxes only==================
key5EntryName = Entry(jsonframe)
key5EntryName.place(x=340, y=462)
key5EntryStartIndex = Entry(jsonframe)
key5EntryStartIndex.place(x=480, y=462)
key5EntryEndIndex = Entry(jsonframe)
key5EntryEndIndex.place(x=620, y=462)
```
![Я вставил несколько полей ввода вручную без цикла, как я могу объявить поле ввода несколько раз, не вызывая снова и снова (Tkinter) [closed] TheFAQ.ru](https://thefaq.ru/wp-content/uploads/2023/01/logo-250.png)
