2006-04-28 Don Allingham <don@gramps-project.org>

* src/AutoComp.py (StandardCustomSelector.fill): handle unicode
	in addition to str
	* src/ScratchPad.py (ScratchPadWindow.__init__): fix call to
	set_window, passing proper arguments



svn: r6489
This commit is contained in:
Don Allingham 2006-04-28 19:48:48 +00:00
parent a58443e671
commit 21e98d4168
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-04-28 Don Allingham <don@gramps-project.org>
* src/AutoComp.py (StandardCustomSelector.fill): handle unicode
in addition to str
* src/ScratchPad.py (ScratchPadWindow.__init__): fix call to
set_window, passing proper arguments
2006-04-28 Alex Roitman <shura@gramps-project.org>
* src/ScratchPad.py (ScratchPadWindow.__init__): Allow only one
instance; translate label; remove unneeded event handlers.

View File

@ -175,9 +175,9 @@ class StandardCustomSelector:
if self.additional:
for event_type in self.additional:
if type(event_type) == str:
if type(event_type) == str or type(event_type) == unicode :
self.store.append(row=[self.custom_key, event_type])
elif type(event_type) == str:
elif type(event_type) == tuple:
self.store.append(row=[event_type[0], event_type[1]])
else:
self.store.append(row=[int(event_type), str(event_type[1])])