From 7c862dac12faaa9d9dfd3b4732d72b41a946afd1 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 4 Jun 2004 11:35:09 +0000 Subject: Require 2.3.93 --- examples/gtk/widget.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/gtk/widget.py b/examples/gtk/widget.py index 10764ae9..d240d765 100644 --- a/examples/gtk/widget.py +++ b/examples/gtk/widget.py @@ -6,6 +6,10 @@ import pango import gtk from gtk import gdk +if gtk.pygtk_version < (2,3,93): + print "PyGtk 2.3.93 or later required for this example" + raise SystemExit + TEXT = 'A GtkWidget implemented in PyGTK' class PyGtkWidget(gtk.Widget): @@ -70,7 +74,7 @@ class PyGtkWidget(gtk.Widget): event.width = allocation.width event.height = allocation.height self.event(event) -gobject.type_register(Widget) +gobject.type_register(PyGtkWidget) win = gtk.Window() win.set_title(TEXT) -- cgit v1.2.1