Hi
Is there an easy way to re-use the standard primary editor windows
modally? e.g. EditPerson, EditEvent.
To compound the problem I want to do this from an existing modal dialog.
The best I've come up with so far is:
# some function in the modal dialog class
def _func(self):
# create editor window
editor = EditPerson(dbstate, uistate, track, person)
# make it modal and wait for it to be destroyed
editor.window.set_modal(True)
editor.window.connect('destroy', Gtk.main_quit)
Gtk.main()
# follow on operations that use person
# may include other EditPerson, EditEvent, ... windows
It seems to work, but it just feels wrong.
I had considered using the EditPerson callback and performing the follow
on operations inside the callback. I'm concerned about the user
experience if several EditX windows appear on the screen simultaneously.
Thanks
Steve
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel