Firstly can I say that pygtk (especially in combination with glade) is a
fantastic piece of work. However to get it to work, I had to make the
following changes (diff'ed against the version I just checked out of CVS):
Index: pygtk/gtk.py
===================================================================
RCS file: /cvs/gnome/gnome-python/pygtk/gtk.py,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gtk.py
--- gtk.py 1998/12/06 10:08:04 1.1.1.1
+++ gtk.py 1998/12/06 13:17:51
@@ -707,7 +707,7 @@
if ha or va:
self._o = _gtk.gtk_viewport_new(ha._o, va._o)
else:
- self._o = _gtk.gtk_viewport_new()
+ self._o =
+_gtk.gtk_viewport_new(GtkAdjustment()._o,GtkAdjustment()._o)
def get_hadjustment(self):
return _obj2inst(_gtk.gtk_viewport_get_hadjustment(self._o))
def get_vdjustment(self):
Index: pygtk/gtkmodule.c
===================================================================
RCS file: /cvs/gnome/gnome-python/pygtk/gtkmodule.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gtkmodule.c
--- gtkmodule.c 1998/12/06 10:08:04 1.1.1.1
+++ gtkmodule.c 1998/12/06 13:17:52
@@ -4422,7 +4422,7 @@
if (!PyArg_ParseTuple(args, "O!:gtk_list_get_selection",&PyGtk_Type,&list))
return NULL;
tmp = GTK_LIST(PyGtk_Get(list))->selection;
- ret - PyList_New(0);
+ ret = PyList_New(0);
for (; tmp; tmp = tmp->next)
PyList_Append(ret, PyGtk_New(tmp->data));
return ret;
@@ -4449,7 +4449,7 @@
if (!PyArg_ParseTuple(args, "O!:gtk_tree_get_selection",&PyGtk_Type,&tree))
return NULL;
tmp = GTK_TREE(PyGtk_Get(tree))->selection;
- ret - PyList_New(0);
+ ret = PyList_New(0);
for (; tmp; tmp = tmp->next)
PyList_Append(ret, PyGtk_New(tmp->data));
return ret;
Index: pygtk/pyglade/build.py
===================================================================
RCS file: /cvs/gnome/gnome-python/pygtk/pyglade/build.py,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 build.py
--- build.py 1998/12/06 10:08:08 1.1.1.1
+++ build.py 1998/12/06 13:17:52
@@ -571,7 +571,7 @@
def scrolledwindow_new(node):
win = GtkScrolledWindow()
shadow = node.get('shadow_type', SHADOW_IN)
- win.set_shadow_type(shadow)
+# win.set_shadow_type(shadow)
hpol = node.get('hscrollbar_policy', POLICY_ALWAYS)
vpol = node.get('vscrollbar_policy', POLICY_ALWAYS)
win.set_policy(hpol, vpol)
The changes to pygtk/pyglade/build.py and to pygtk/gtk.py are changes I
made to get it to work - I'm not sure if they're what should be done, but
something needs to be done.
The changes to pygtk/gtkmodule.c correct two flagrant typos.
I hope this helps someone, and once again: pygnome is great!
Michael Hudson
Jesus College
Cambridge
[EMAIL PROTECTED]
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]