~mvo/update-manager/pae-kernel-transtion

« back to all changes in this revision

Viewing changes to src/utils.py

  • Committer: Michael Vogt
  • Date: 2005-11-15 13:18:07 UTC
  • Revision ID: egon@top-20051115131807-12fada324eb74180
* initial revision (after accidently killing it)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import gobject
 
2
import gtk
 
3
import gtk.glade
 
4
 
 
5
def error(parent, primary, secondary):
 
6
    p = "<span weight=\"bold\" size=\"larger\">%s</span>" % primary
 
7
    dialog = gtk.MessageDialog(parent,gtk.DIALOG_MODAL,
 
8
                               gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,"")
 
9
    dialog.set_markup(p);
 
10
    dialog.format_secondary_text(secondary);
 
11
    dialog.run()
 
12
    dialog.hide()