Updates
svn: r2892
This commit is contained in:
parent
337ff6b331
commit
797649f5d5
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user