3721: RuntimeWarning on Event comparison tool
svn: r14839
This commit is contained in:
parent
cecfb0b1f2
commit
86238994bb
@ -126,10 +126,9 @@ class EventComparison(Tool.Tool,ManagedWindow.ManagedWindow):
|
||||
self.filterDialog.connect_signals({
|
||||
"on_apply_clicked" : self.on_apply_clicked,
|
||||
"on_editor_clicked" : self.filter_editor_clicked,
|
||||
"on_filters_delete_event": self.close,
|
||||
"on_help_clicked" : self.on_help_clicked,
|
||||
"destroy_passed_object" : self.close,
|
||||
"on_delete_event" : self.close,
|
||||
"on_write_table" : self.__dummy,
|
||||
})
|
||||
|
||||
window = self.filterDialog.toplevel
|
||||
@ -143,8 +142,13 @@ class EventComparison(Tool.Tool,ManagedWindow.ManagedWindow):
|
||||
uistate.connect('filters-changed', self.on_filters_changed)
|
||||
|
||||
self.show()
|
||||
|
||||
|
||||
|
||||
def __dummy(self, obj):
|
||||
"""dummy callback, needed because widget is in same glade file
|
||||
as another widget, so callbacks must be defined to avoid warnings.
|
||||
"""
|
||||
pass
|
||||
|
||||
def on_filters_changed(self, name_space):
|
||||
if name_space == 'Person':
|
||||
all_filter = GenericFilter()
|
||||
@ -227,6 +231,8 @@ class DisplayChart(ManagedWindow.ManagedWindow):
|
||||
"on_write_table" : self.on_write_table,
|
||||
"destroy_passed_object" : self.close,
|
||||
"on_help_clicked" : self.on_help_clicked,
|
||||
"on_apply_clicked" : self.__dummy,
|
||||
"on_editor_clicked" : self.__dummy,
|
||||
})
|
||||
|
||||
window = self.topDialog.toplevel
|
||||
@ -250,6 +256,12 @@ class DisplayChart(ManagedWindow.ManagedWindow):
|
||||
self.draw_display()
|
||||
self.show()
|
||||
|
||||
def __dummy(self, obj):
|
||||
"""dummy callback, needed because widget is in same glade file
|
||||
as another widget, so callbacks must be defined to avoid warnings.
|
||||
"""
|
||||
pass
|
||||
|
||||
def on_help_clicked(self, obj):
|
||||
"""Display the relevant portion of GRAMPS manual"""
|
||||
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
|
||||
|
@ -13,10 +13,10 @@
|
||||
<property name="default_height">400</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<property name="has_separator">False</property>
|
||||
<signal name="delete_event" handler="on_view_delete_event"/>
|
||||
<child internal-child="vbox">
|
||||
<object class="GtkVBox" id="dialog-vbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">8</property>
|
||||
<child>
|
||||
<object class="GtkTable" id="mytable">
|
||||
@ -129,10 +129,10 @@
|
||||
<property name="default_width">400</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<property name="has_separator">False</property>
|
||||
<signal name="delete_event" handler="on_filters_delete_event"/>
|
||||
<child internal-child="vbox">
|
||||
<object class="GtkVBox" id="dialog-vbox5">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">8</property>
|
||||
<child>
|
||||
<object class="GtkTable" id="table1">
|
||||
|
Loading…
Reference in New Issue
Block a user