fix focus out event
svn: r6087
This commit is contained in:
parent
149d92384d
commit
0bd53c1a49
@ -1,4 +1,7 @@
|
|||||||
2006-03-05 Don Allingham <don@gramps-project.org>
|
2006-03-05 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/TipOfDay.py: Fix the image location
|
||||||
|
* src/Editors/_EditPerson.py: fix focus_out_event
|
||||||
|
* src/ViewManager.py: replace the data
|
||||||
* src/DataViews/_RepositoryView.py: column editing
|
* src/DataViews/_RepositoryView.py: column editing
|
||||||
* src/DataViews/_MediaView.py: column editing
|
* src/DataViews/_MediaView.py: column editing
|
||||||
* src/DataViews/_SourceView.py: column editing
|
* src/DataViews/_SourceView.py: column editing
|
||||||
|
@ -340,9 +340,10 @@ class EditPerson(EditPrimary):
|
|||||||
def given_focus_out_event (self, entry, event):
|
def given_focus_out_event (self, entry, event):
|
||||||
if not self.should_guess_gender:
|
if not self.should_guess_gender:
|
||||||
return False
|
return False
|
||||||
|
try:
|
||||||
gender = self.given.get_value()
|
self.gender.force(self.db.genderStats.guess_gender(entry.get_text()))
|
||||||
self.gender.force(self.db.genderStats.guess_gender())
|
except:
|
||||||
|
return False
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def load_photo(self,photo):
|
def load_photo(self,photo):
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
from xml.parsers.expat import ParserCreate
|
from xml.parsers.expat import ParserCreate
|
||||||
from random import Random
|
from random import Random
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
import os
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -57,6 +58,8 @@ class TipOfDay:
|
|||||||
top = xml.get_widget("tod")
|
top = xml.get_widget("tod")
|
||||||
tip = xml.get_widget("tip")
|
tip = xml.get_widget("tip")
|
||||||
use = xml.get_widget('usetips')
|
use = xml.get_widget('usetips')
|
||||||
|
image = xml.get_widget('image')
|
||||||
|
image.set_from_file(os.path.join(const.image_dir,'splash.jpg'))
|
||||||
|
|
||||||
alt_title = xml.get_widget("title")
|
alt_title = xml.get_widget("title")
|
||||||
tmsg = _("GRAMPS' Tip of the Day")
|
tmsg = _("GRAMPS' Tip of the Day")
|
||||||
|
@ -11899,9 +11899,8 @@ Text Beside Icons</property>
|
|||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImage" id="image1968">
|
<widget class="GtkImage" id="image">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="pixbuf">splash.jpg</property>
|
|
||||||
<property name="xalign">0.5</property>
|
<property name="xalign">0.5</property>
|
||||||
<property name="yalign">0.5</property>
|
<property name="yalign">0.5</property>
|
||||||
<property name="xpad">0</property>
|
<property name="xpad">0</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user