Minor cleaup for 0.3.0 release

svn: r161
This commit is contained in:
Don Allingham 2001-06-17 18:56:22 +00:00
parent d9036e2d86
commit 6383bc0fcd
5 changed files with 8 additions and 11 deletions

View File

@ -50,6 +50,7 @@ import libglade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from RelLib import * from RelLib import *
from Date import *
import Researcher import Researcher
import const import const
@ -511,7 +512,7 @@ def display_preferences_box():
item.connect("activate", on_format_toggled) item.connect("activate", on_format_toggled)
item.show() item.show()
date_menu.append(item) date_menu.append(item)
date_menu.set_active(Date.get_format_code()) date_menu.set_active(get_format_code())
date_option.set_menu(date_menu) date_option.set_menu(date_menu)
date_entry = prefsTop.get_widget("date_entry_format") date_entry = prefsTop.get_widget("date_entry_format")

View File

@ -722,6 +722,7 @@ def update_source_after_edit(source):
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
def on_tools_clicked(obj): def on_tools_clicked(obj):
if active_person:
Plugins.ToolPlugins(database,active_person,update_display) Plugins.ToolPlugins(database,active_person,update_display)
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -730,6 +731,7 @@ def on_tools_clicked(obj):
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
def on_reports_clicked(obj): def on_reports_clicked(obj):
if active_person:
Plugins.ReportPlugins(database,active_person) Plugins.ReportPlugins(database,active_person)
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -1992,12 +1994,8 @@ def displayError(msg):
# #
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import time
def apply_filter(): def apply_filter():
t1 = time.time()
people = database.getPersonMap().values() people = database.getPersonMap().values()
names = [] names = []
@ -2040,8 +2038,6 @@ def apply_filter():
person_list.thaw() person_list.thaw()
t2 = time.time()
print "apply",t2-t1
if i > 0: if i > 0:
goto_active_person() goto_active_person()

View File

@ -178,7 +178,7 @@ class AncestorReport:
width = 0 width = 0
self.filter(self.start,1) self.filter(self.start,1)
self.height = self.lines*pt2cm(1.2*self.font.get_size()) self.height = self.lines*pt2cm(1.25*self.font.get_size())
self.box_width = pt2cm(self.box_width+20) self.box_width = pt2cm(self.box_width+20)
start = self.doc.get_right_margin() start = self.doc.get_right_margin()