summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-28 17:56:16 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-28 17:56:16 +0200
commit34eb7395b42df46fe9caf53d107d212e39a7cdf8 (patch)
tree62823d3f185a6f363c4d3e9fa551b74154ab16b4 /DistUpgrade/DistUpgradeViewGtk.py
parent17403f483aa261be15fd9620597d18c61da3a80c (diff)
downloadpython-apt-34eb7395b42df46fe9caf53d107d212e39a7cdf8.tar.gz
* DistUpgrade/DistUpgradeView.py:
- added information() function * DistUpgrade/DistUpgradeViewGtk.py: - implemented gtk information() function * DistUpgrade/DistUpgradeControler.py: - inform the user about disabled third party sources
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py10
1 files changed, 10 insertions, 0 deletions
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 = "<big><b>%s</b></big>\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)