[pyphy] updated Mavric available
Rick Ree
rree@oeb.harvard.edu
Fri, 5 Nov 1999 12:30:14 -0500 (EST)
There is a bug in pygtk, and I posted a fix to the pygtk list, so
hopefully it will be incorporated in future releases. In the meantime,
here is the fix:
In line 3732 of gtkmodule.c, the format string for PyArg_ParseTuple should
be:
"O!dddddd:gtk_adjustment_set_all"
instead of:
"O!:gtk_adjustment_set_all"
After changing, recompile and install _gtkmodule.so.
Also, I forgot to mention that I added 2 lines to GtkExtra.py to make
tearoff menu items available from the MenuFactory. I don't know if James
is going to incorporate that, so in the meantime, I guess I should just
bundle my modified version with mavric.
The two lines I added after line 46 of GtkExtra.py:
47,48d46
< elif label == '<tearoff>':
< item = GtkTearoffMenuItem()
Sorry for the inconvenience.
--Rick
On Fri, 5 Nov 1999, Danny Rice wrote:
> Rick Ree writes:
> >The rewrite of Mavric I mentioned earlier is now up as a tarball on the
> >web site (http://theopenlab.uml.edu/mavric). I hope no one is offended
> >that I'm not using CVS, but the main reason is that I'm still thinking
> >about the design of the modules, and so it's probably too much of a moving
> >target for CVS. Also, I'm just not organized enough. Anyway, no one else
> >was making commits, so no big deal :)
> >
> >I'd appreciate feedback if anyone finds it remotely useful.
> >
> >Rick
>
> Rick, I tried the tar file and got the following message:
>
> mavric.py treefile
>
> Traceback (innermost last):
> File "./mavric.py", line 26, in ?
> t.showTree(0)
> File "/home/rree/src/mavric/Mavric/treeeditor.py", line 128, in showTree
> File "/home/rree/src/mavric/Mavric/treecanvas.py", line 337, in showTree
> File "/home/rree/src/mavric/Mavric/treecanvas.py", line 368, in fitCurrentToWindow
> File "/usr/lib/python1.5/site-packages/gtk.py", line 198, in set_all
> page_size)
> TypeError: gtk_adjustment_set_all requires exactly 1 argument; 7 given
>
> I moved the .pyc files and still got a similar message.
>
> Traceback (innermost last):
> File "./mavric.py", line 26, in ?
> t.showTree(0)
> File "./Mavric/treeeditor.py", line 128, in showTree
> self.scrwin.canvas.showTree(tree)
> File "./Mavric/treecanvas.py", line 337, in showTree
> self.fitCurrentToWindow()
> File "./Mavric/treecanvas.py", line 368, in fitCurrentToWindow
> h.step_increment, h.page_increment, h.page_size)
> File "/usr/lib/python1.5/site-packages/gtk.py", line 198, in set_all
> page_size)
> TypeError: gtk_adjustment_set_all requires exactly 1 argument; 7 given
>
> I have redhat 6.1 with
>
> python-1.5.2-7
> gnome-libs-1.0.40-1
> pygtk-0.6.2-2
>
> I don't know enough python at this point to decipher this. Looks like
> gtk_adjustment_set_all is getting called with too many arguments
> somewhere.
>
> Danny
>
> _______________________________________________
> pyphy maillist - pyphy@theopenlab.uml.edu
> http://theopenlab.uml.edu/mailman/listinfo/pyphy
>