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

« back to all changes in this revision

Viewing changes to SoftwareProperties/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 gtk
 
2
 
 
3
def dialog_error(parent, primary, secondary):
 
4
    p = "<span weight=\"bold\" size=\"larger\">%s</span>" % primary
 
5
    dialog = gtk.MessageDialog(parent,gtk.DIALOG_MODAL,
 
6
                               gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,"")
 
7
    dialog.set_markup(p);
 
8
    dialog.format_secondary_text(secondary);
 
9
    dialog.run()
 
10
    dialog.hide()