* src/EditPlace.py, src/EditSource.py, src/ImageSelect.py: Provide

default value for the second argument on close().


svn: r5763
This commit is contained in:
Alex Roitman 2006-01-16 20:02:25 +00:00
parent 8ba376dd86
commit b3bab9607d
4 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,8 @@
2006-01-16 Alex Roitman <shura@gramps-project.org> 2006-01-16 Alex Roitman <shura@gramps-project.org>
* src/GenericFilter.py * src/GenericFilter.py
(IsLessThanNthGenerationAncestorOfBookmarked): Typo. (IsLessThanNthGenerationAncestorOfBookmarked): Typo.
* src/EditPlace.py, src/EditSource.py, src/ImageSelect.py: Provide
default value for the second argument on close().
2006-01-15 Don Allingham <don@gramps-project.org> 2006-01-15 Don Allingham <don@gramps-project.org>
* src/RelLib.py: improve Event is_equal method * src/RelLib.py: improve Event is_equal method

View File

@ -276,7 +276,7 @@ class EditPlace:
self.remove_itself_from_menu() self.remove_itself_from_menu()
gc.collect() gc.collect()
def close(self,obj): def close(self,obj=None):
self.glry.close() self.glry.close()
self.close_child_windows() self.close_child_windows()
self.remove_itself_from_menu() self.remove_itself_from_menu()

View File

@ -227,7 +227,7 @@ class EditSource:
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help('adv-src') GrampsDisplay.help('adv-src')
def close(self,obj): def close(self,obj=None):
self.gallery.close() self.gallery.close()
self.close_child_windows() self.close_child_windows()
self.remove_itself_from_menu() self.remove_itself_from_menu()

View File

@ -800,7 +800,7 @@ class LocalMediaProperties:
self.remove_itself_from_menu() self.remove_itself_from_menu()
gc.collect() gc.collect()
def close(self,obj): def close(self,obj=None):
self.gladeif.close() self.gladeif.close()
self.close_child_windows() self.close_child_windows()
self.remove_itself_from_menu() self.remove_itself_from_menu()
@ -1091,7 +1091,7 @@ class GlobalMediaProperties:
self.remove_itself_from_menu() self.remove_itself_from_menu()
gc.collect() gc.collect()
def close(self,obj): def close(self,obj=None):
self.close_child_windows() self.close_child_windows()
self.remove_itself_from_menu() self.remove_itself_from_menu()
self.window.destroy() self.window.destroy()