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 /src/utils.py | |
| download | python-apt-d632109cd5964f7d4baa408d517e44f801e1be8d.tar.gz | |
* initial revision (after accidently killing it)
Diffstat (limited to 'src/utils.py')
| -rw-r--r-- | src/utils.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils.py b/src/utils.py new file mode 100644 index 00000000..3231ba98 --- /dev/null +++ b/src/utils.py @@ -0,0 +1,12 @@ +import gobject +import gtk +import gtk.glade + +def 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() |
