home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / SoftwareProperties / utils.py < prev    next >
Encoding:
Python Source  |  2006-08-24  |  356 b   |  11 lines

  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()
  11.