diff options
| author | Michael Vogt <egon@top> | 2005-11-15 14:18:07 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-11-15 14:18:07 +0100 |
| commit | d632109cd5964f7d4baa408d517e44f801e1be8d (patch) | |
| tree | c1acf5f14bcfa183951c260a52e5560610f3a988 /SoftwareProperties/utils.py | |
| download | python-apt-d632109cd5964f7d4baa408d517e44f801e1be8d.tar.gz | |
* initial revision (after accidently killing it)
Diffstat (limited to 'SoftwareProperties/utils.py')
| -rw-r--r-- | SoftwareProperties/utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/SoftwareProperties/utils.py b/SoftwareProperties/utils.py new file mode 100644 index 00000000..cf9a3343 --- /dev/null +++ b/SoftwareProperties/utils.py @@ -0,0 +1,10 @@ +import gtk + +def dialog_error(parent, primary, secondary): + p = "<span weight=\"bold\" size=\"larger\">%s</span>" % primary + dialog = gtk.MessageDialog(parent,gtk.DIALOG_MODAL, + gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,"") + dialog.set_markup(p); + dialog.format_secondary_text(secondary); + dialog.run() + dialog.hide() |
