#75 'module' object has no attribute 'gnome_errr_dialog_parented

Severe bug
closed-fixed
nobody
interface (14)
5
2005-12-08
2005-12-01
Ed Catmur
No

With recent GTK+/PyGtk:

Traceback (most recent call last):
File
"/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py",
line 1125, in apply_changes
new = self.editor.update (self.database, self.current)
File
"/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py",
line 894, in update
ui.gnome_error_dialog_parented (
AttributeError: 'module' object has no attribute
'gnome_error_dialog_parented'
Traceback (most recent call last):
File
"/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py",
line 1125, in apply_changes
new = self.editor.update (self.database, self.current)
File
"/usr/share/pybliographer/Pyblio/GnomeUI/Editor.py",
line 894, in update
ui.gnome_error_dialog_parented (
AttributeError: 'module' object has no attribute
'gnome_error_dialog_parented'

gnome_error_dialog_parented has been deprecated. I
suggest using this workaround:

if "gnome_error_dialog_parented" not in ui.__dict__:
def gnome_error_dialog_parented(string, parent):
dialog = gtk.MessageDialog(parent,
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, string)
dialog.run()
dialog.hide()
ui.gnome_error_dialog_parented =
gnome_error_dialog_parented

Discussion

  • Zoltán Kóta
    Zoltán Kóta
    2005-12-08

    Logged In: YES
    user_id=149336

    This bug is fixed in the main arch branch.
    See patch-223..224.

     
  • Zoltán Kóta
    Zoltán Kóta
    2005-12-08

    • status: open --> closed-fixed