autocompletion for surnames
svn: r6234
This commit is contained in:
parent
031e340adb
commit
f824eded45
@ -1,6 +1,9 @@
|
|||||||
2006-03-30 Don Allingham <don@gramps-project.org>
|
2006-03-30 Don Allingham <don@gramps-project.org>
|
||||||
* src/Mime/_GnomeMime.py: filter out bad KDE mime type commands
|
* src/Mime/_GnomeMime.py: filter out bad KDE mime type commands
|
||||||
* src/Utils.py: clean up launch routine
|
* src/Utils.py: clean up launch routine
|
||||||
|
* src/Editors/_EditPerson.py: setup autocomp list
|
||||||
|
* src/GrampsWidgets.py: enable autocompletion on MonitoredEntry if
|
||||||
|
a list is provided
|
||||||
|
|
||||||
2006-03-29 Brian Matherly <pez4brian@users.sourceforge.net>
|
2006-03-29 Brian Matherly <pez4brian@users.sourceforge.net>
|
||||||
* src/Sort.py: remove use of deprecated functions
|
* src/Sort.py: remove use of deprecated functions
|
||||||
|
@ -54,6 +54,7 @@ import NameDisplay
|
|||||||
import DisplayState
|
import DisplayState
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
import GrampsWidgets
|
import GrampsWidgets
|
||||||
|
import AutoComp
|
||||||
from _EditPrimary import EditPrimary
|
from _EditPrimary import EditPrimary
|
||||||
from DisplayTabs import *
|
from DisplayTabs import *
|
||||||
|
|
||||||
@ -189,7 +190,8 @@ class EditPerson(EditPrimary):
|
|||||||
self.top.get_widget("surname"),
|
self.top.get_widget("surname"),
|
||||||
self.pname.set_surname,
|
self.pname.set_surname,
|
||||||
self.pname.get_surname,
|
self.pname.get_surname,
|
||||||
self.db.readonly)
|
self.db.readonly,
|
||||||
|
autolist=self.db.get_surname_list())
|
||||||
|
|
||||||
self.gid = GrampsWidgets.MonitoredEntry(
|
self.gid = GrampsWidgets.MonitoredEntry(
|
||||||
self.top.get_widget("gid"),
|
self.top.get_widget("gid"),
|
||||||
|
@ -258,7 +258,8 @@ class MonitoredCheckbox:
|
|||||||
|
|
||||||
class MonitoredEntry:
|
class MonitoredEntry:
|
||||||
|
|
||||||
def __init__(self,obj,set_val,get_val,read_only=False, changed=None):
|
def __init__(self,obj,set_val,get_val,read_only=False,
|
||||||
|
autolist=None, changed=None):
|
||||||
self.obj = obj
|
self.obj = obj
|
||||||
self.set_val = set_val
|
self.set_val = set_val
|
||||||
self.get_val = get_val
|
self.get_val = get_val
|
||||||
@ -269,6 +270,9 @@ class MonitoredEntry:
|
|||||||
self.obj.connect('changed', self._on_change)
|
self.obj.connect('changed', self._on_change)
|
||||||
self.obj.set_editable(not read_only)
|
self.obj.set_editable(not read_only)
|
||||||
|
|
||||||
|
if autolist:
|
||||||
|
AutoComp.fill_entry(obj,autolist)
|
||||||
|
|
||||||
def connect(self,signal,callback):
|
def connect(self,signal,callback):
|
||||||
self.obj.connect(signal,callback)
|
self.obj.connect(signal,callback)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user