Persist window dimensions for selector windows. TODO: SelectPerson. This class needs rewriting to use BaseSelector

svn: r11923
This commit is contained in:
Gary Burton
2009-02-08 15:47:24 +00:00
parent badbc32254
commit 4d567fa2fb
8 changed files with 93 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2006 Donald N. Allingham
# 2009 Gary Burton
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -34,6 +35,7 @@ from gettext import gettext as _
#-------------------------------------------------------------------------
from DisplayModels import SourceModel
from _BaseSelector import BaseSelector
import Config
#-------------------------------------------------------------------------
#
@@ -42,6 +44,13 @@ from _BaseSelector import BaseSelector
#-------------------------------------------------------------------------
class SelectSource(BaseSelector):
def _local_init(self):
"""
Perform local initialisation for this class
"""
self.width_key = Config.SOURCE_SEL_WIDTH
self.height_key = Config.SOURCE_SEL_HEIGHT
def get_window_title(self):
return _("Select Source")