Oct-17-2023, 07:11 AM
OK, I'll explain the functionality, what would be the best approach then?
User opens a search program, and gets a single-select list(box) with
names of counties, provinces, French "préfectures"., etc.
He clicks on one of them, and the TopLevel opens, showing a list(box)
with all the villages in that county... , for which documents are available (prayer cards, marriage records, etc.)
This is just for info, the user can verify if the location he is interested in, has stuff available.
He can scroll the list f is is long.
The only thing he can do now, is click on the toplevel window close button.
No, he is not supposed to click on a village in the toplevel window,
because data are organised by event type first. (If you want marriage info, you don't look in prayer cards)
(Parish registers are also per type of event, at a lower geo level than village or town)
That's all, no dialog.
Paul
edit: I suppose that I do not need a "mainloop" for this window. Otherwise it throws an error when the window is closed.(tkinter.TclError)
User opens a search program, and gets a single-select list(box) with
names of counties, provinces, French "préfectures"., etc.
He clicks on one of them, and the TopLevel opens, showing a list(box)
with all the villages in that county... , for which documents are available (prayer cards, marriage records, etc.)
This is just for info, the user can verify if the location he is interested in, has stuff available.
He can scroll the list f is is long.
The only thing he can do now, is click on the toplevel window close button.
No, he is not supposed to click on a village in the toplevel window,
because data are organised by event type first. (If you want marriage info, you don't look in prayer cards)
(Parish registers are also per type of event, at a lower geo level than village or town)
That's all, no dialog.
Paul
edit: I suppose that I do not need a "mainloop" for this window. Otherwise it throws an error when the window is closed.(tkinter.TclError)