svn: r2892
This commit is contained in:
Alex Roitman 2004-02-22 05:37:36 +00:00
parent 337ff6b331
commit 797649f5d5
10 changed files with 22 additions and 1 deletions

View File

@ -143,10 +143,12 @@ class AddressEditor:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.window.destroy()
def close_child_windows(self):

View File

@ -140,10 +140,12 @@ class AttributeEditor:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.window.destroy()
def close_child_windows(self):

View File

@ -129,6 +129,7 @@ class EditSource:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
@ -138,6 +139,7 @@ class EditSource:
self.gallery.close(self.gallery_ok)
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.top.destroy()
def close_child_windows(self):

View File

@ -208,10 +208,12 @@ class EventEditor:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.window.destroy()
def close_child_windows(self):

View File

@ -747,12 +747,13 @@ class LocalMediaProperties:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.parent.parent.child_windows.remove(self)
self.remove_itself_from_menu()
self.parent.parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.parent.child_windows.remove(self)
self.window.destroy()
def close_child_windows(self):

View File

@ -132,10 +132,12 @@ class NameEditor:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.window.destroy()
def close_child_windows(self):

View File

@ -90,9 +90,11 @@ class NoteEditor:
def on_delete_event(self,obj,b):
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.top.destroy()
def add_itself_to_menu(self):

View File

@ -105,10 +105,12 @@ class SourceSelector:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.window.destroy()
def close_child_windows(self):
@ -332,10 +334,12 @@ class SourceEditor:
def on_delete_event(self,obj,b):
self.close_child_windows()
self.remove_itself_from_menu()
self.win_parent.child_windows.remove(self)
def close(self,obj):
self.close_child_windows()
self.remove_itself_from_menu()
self.win_parent.child_windows.remove(self)
self.sourceDisplay.destroy()
def close_child_windows(self):

View File

@ -84,9 +84,11 @@ class UrlEditor:
def on_delete_event(self,obj,b):
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
def close(self,obj):
self.remove_itself_from_menu()
self.parent.child_windows.remove(self)
self.window.destroy()
def add_itself_to_menu(self):

View File

@ -161,9 +161,11 @@ class WitnessEditor:
def on_delete_event(self,obj,b):
self.remove_itself_from_menu()
self.parent.parent.child_windows.remove(self)
def close(self,obj):
self.remove_itself_from_menu()
self.parent.parent.child_windows.remove(self)
self.window.destroy()
def add_itself_to_menu(self):