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:
parent
a58443e671
commit
21e98d4168
@ -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>
|
2006-04-28 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/ScratchPad.py (ScratchPadWindow.__init__): Allow only one
|
* src/ScratchPad.py (ScratchPadWindow.__init__): Allow only one
|
||||||
instance; translate label; remove unneeded event handlers.
|
instance; translate label; remove unneeded event handlers.
|
||||||
|
@ -175,9 +175,9 @@ class StandardCustomSelector:
|
|||||||
|
|
||||||
if self.additional:
|
if self.additional:
|
||||||
for event_type in 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])
|
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]])
|
self.store.append(row=[event_type[0], event_type[1]])
|
||||||
else:
|
else:
|
||||||
self.store.append(row=[int(event_type), str(event_type[1])])
|
self.store.append(row=[int(event_type), str(event_type[1])])
|
||||||
|
Loading…
Reference in New Issue
Block a user