[pygtk] Print gtk/pygtk version when running pygtk-demo
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] Print gtk/pygtk version when running pygtk-demo
- Date: Sat, 16 Oct 2010 05:31:25 +0000 (UTC)
commit db1ac530d6596c46c9cdaafbc2beb92697563abe
Author: John Stowers <john stowers gmail com>
Date: Sat Oct 16 12:15:43 2010 +1300
Print gtk/pygtk version when running pygtk-demo
examples/pygtk-demo/pygtk-demo.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/examples/pygtk-demo/pygtk-demo.py b/examples/pygtk-demo/pygtk-demo.py
index 34cb3d3..9fdb78b 100644
--- a/examples/pygtk-demo/pygtk-demo.py
+++ b/examples/pygtk-demo/pygtk-demo.py
@@ -90,7 +90,7 @@ class PyGtkDemo(gtk.Window):
def __init__(self):
gtk.Window.__init__(self)
- self.set_title("PyGTK+ Code Demos")
+ self.set_title("PyGTK Code Demos")
self.connect('destroy', lambda w: gtk.main_quit())
self.set_default_size(800, 400)
@@ -317,4 +317,7 @@ class PyGtkDemo(gtk.Window):
self.insert_source(source)
if __name__ == '__main__':
+ print "PyGTK Demo",
+ print "(gtk: v%d.%d.%d, " % gtk.gtk_version,
+ print "pygtk: v%d.%d.%d)" % gtk.pygtk_version
PyGtkDemo().run()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]