From 34eb7395b42df46fe9caf53d107d212e39a7cdf8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 28 Apr 2006 17:56:16 +0200 Subject: * DistUpgrade/DistUpgradeView.py: - added information() function * DistUpgrade/DistUpgradeViewGtk.py: - implemented gtk information() function * DistUpgrade/DistUpgradeControler.py: - inform the user about disabled third party sources --- DistUpgrade/DistUpgradeViewGtk.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'DistUpgrade/DistUpgradeViewGtk.py') diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 561ab22c..69990fd5 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -373,6 +373,16 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp): attrlist.insert(attr) label.set_property("attributes",attrlist) + def information(self, summary, msg): + msg = "%s\n\n%s" % (summary,msg) + dialog = gtk.MessageDialog(parent=self.window_main, + flags=gtk.DIALOG_MODAL, + type=gtk.MESSAGE_INFO, + buttons=gtk.BUTTONS_CLOSE) + dialog.set_markup(msg) + dialog.run() + dialog.destroy() + def error(self, summary, msg, extended_msg=None): self.dialog_error.set_transient_for(self.window_main) #self.expander_terminal.set_expanded(True) -- cgit v1.2.3