Fixed namespace problem in EditPerson.py for get_place_from_list, and DOC to DOCSTRING in Plugins

svn: r372
This commit is contained in:
Don Allingham 2001-09-01 13:09:02 +00:00
parent 12c1843058
commit 96d8e8b8c2
3 changed files with 5 additions and 3 deletions

View File

@ -1497,7 +1497,7 @@ def on_event_edit_ok_clicked(obj):
ename = ee.name_field.get_text()
edate = ee.date_field.get_text()
eplace = string.strip(ee.place_field.get_text())
eplace_obj = get_place_from_list(ee.place_combo)
eplace_obj = utils.get_place_from_list(ee.place_combo)
enote = ee.note_field.get_chars(0,-1)
edesc = ee.descr_field.get_text()
epriv = ee.priv.get_active()

View File

@ -178,7 +178,7 @@ def on_report_node_selected(obj):
title = obj.get_data(TITLE)
img = myobj.dialog.get_widget("image")
myobj.dialog.get_widget("description").set_text(DOC)
myobj.dialog.get_widget("description").set_text(DOCSTRING)
i,m = create_pixmap_from_xpm_d(GtkWindow(),None,xpm)
img.set(i,m)

View File

@ -2430,6 +2430,8 @@ def box_event(obj,event):
if event.type == GDK._2BUTTON_PRESS:
if event.button == 1 and event.type == GDK._2BUTTON_PRESS:
load_person(obj.get_data('p'))
elif event.type == GDK.BUTTON_PRESS and event.button == 3:
on_arrow_left_clicked(obj)
elif event.type == GDK.ENTER_NOTIFY:
canvas = gtop.get_widget("canvas1")
obj.raise_to_top()
@ -2455,7 +2457,6 @@ def box_event(obj,event):
anchor=ANCHOR_WEST,
x=PAD,
y=2*h+(h/2))
elif event.type == GDK.LEAVE_NOTIFY:
canvas = gtop.get_widget("canvas1")
box = obj.children()[1]
@ -2468,6 +2469,7 @@ def box_event(obj,event):
obj.children()[4].destroy()
obj.children()[3].destroy()
canvas.update_now()
return 1
#-------------------------------------------------------------------------
#