Re: [pygtk] error messages

2002-11-03 Thread Jay Graves
> If your system is set up to have the old pygtk as default, you will need > to do the "import pygtk; pygtk.require('2.0')" bit first, and then > import the "gnome" module. You will also need to make sure you have a > 1.99.x version of gnome-python installed. Thats the problem. The Debian uns

Re: [pygtk] co-exist pygtk 0.6xx and pygtk2 1.99xx?

2002-11-03 Thread Christian Reis
On Mon, Nov 04, 2002 at 12:06:45PM +0800, James Henstridge wrote: > > I'm struggling to setup my RedHat 8.0 system so I can compile an > > application that requires pygtk 0.6xx. I'm sorry. I missed this line in your email and it made a whole difference - James is right, and IMO RH8 jumped the gun

Re: [pygtk] Compilation problems

2002-11-03 Thread James Henstridge
Graeme 'Grimace' Jefferis wrote: Hallo there, I've recently been installing GTK+-2 on my RedHat 7.2 system, from binary RPMs. I run ROX as my desktop environment of choice, and its applications tend to use pyGTK extensively; but I've run into difficulties compiling pyGTK 1.99.13. make halts wit

Re: [pygtk] co-exist pygtk 0.6xx and pygtk2 1.99xx?

2002-11-03 Thread James Henstridge
Don Radick wrote: Hi folks - I'm struggling to setup my RedHat 8.0 system so I can compile an application that requires pygtk 0.6xx. After reading the relevant FAQ section many times, I still can't get it to work. Here's an excerpt from the FAQ: James has added to pygtk 0.6.11, pygtk2 1.99

Re: [pygtk] error messages

2002-11-03 Thread James Henstridge
Jay Graves wrote: Your glade file makes use of GNOME widgets, but you have not initialised the GNOME libraries. You need to call gnome.init("progname", "version") after importing the libs you want (gnome.ui, bonobo.ui, etc). Thank you very much for your help but I am still a bit confused

Re: [pygtk] Crash in pygtk_generic_cell_renderer_get_size()

2002-11-03 Thread James Henstridge
Joe Shaw wrote: Hi, I came across a crash in pygtk_generic_cell_renderer_get_size(). It doesn't check to see if the arguments passed in are NULL before passing them to PyArg_ParseTuple(), which dereferences them and crashes. I've filed bug #97436 about it, and attached this patch to it. Joe

Re: [pygtk] GtkTextIter

2002-11-03 Thread James Henstridge
Diego AnzoƔtegui wrote: Hello, When i read the pygtk-docs, says that create_tag take 2 arguments, but the python interpreter raise an error saying that create_tag takes exactly one argument. Another one: to insert text in TextBuffer i need a TextIter object, but i can't create it with the gtk.

Re: [pygtk] error messages

2002-11-03 Thread Jay Graves
On Sun, Nov 03, 2002 at 08:46:28PM -0200, Christian Reis wrote: > On Fri, Nov 01, 2002 at 03:11:29PM -0700, Jay Graves wrote: > > import pygtk, gnome > > pygtk.require('2.0') > > import gtk, gtk.glade > > > > then gnome.init() is not a valid method > > perhaps import gnome.ui before? > (i'm curi

[pygtk] Re: Limits of GConf

2002-11-03 Thread Havoc Pennington
Rob Brown-Bayliss <[EMAIL PROTECTED]> writes: > The list will grow quite large over time (perhapse a few hundred k), how > large is rather unpredictable, should I go back to pickling to a file? > Yes, gconf doesn't have a hardcoded limit, but this won't be remotely efficient. And it would for ex

Re: [pygtk] ANNOUNCE: pyorbit-1.99.1

2002-11-03 Thread Christian Reis
On Thu, Oct 31, 2002 at 12:10:05AM +0800, James Henstridge wrote: > I have jusst put up a new snapshot of PyORBit at: > http://www.gnome.org/~james/pyorbit-1.99.1.tar.gz James, what's the dependency status of PyGTK-1.99 and the matching gnome-python? I was asked today and I thought it would be

[pygtk] GtkRadioButton.group() wrapped in PyGTK-0 HEAD

2002-11-03 Thread Christian Reis
Since somebody asked about it a while back, I thought it would be nice to let other users of the 0.6 branch know that GtkRadioButton.group() is now wrapped. It's just been checked in to HEAD for branch gtk-gnome-1-2, and "seems to work" :-) Test away Take care, -- Christian Reis, Senior Engineer,

Re: [pygtk] line attributes

2002-11-03 Thread Christian Reis
On Thu, Oct 31, 2002 at 09:08:04AM +0800, James Henstridge wrote: > John Hunter wrote: > > >Does someone have some example code to show me how to use draw_line or draw_lines > >with line attributes, eg, GDK_LINE_DOUBLE_DASH, etc... > > > > > All drawing operations in X take a GC (which stands fo

Re: [pygtk] error messages

2002-11-03 Thread Christian Reis
On Fri, Nov 01, 2002 at 03:11:29PM -0700, Jay Graves wrote: > import pygtk, gnome > pygtk.require('2.0') > import gtk, gtk.glade > > then gnome.init() is not a valid method perhaps import gnome.ui before? (i'm curious because i want to update the faq) Take care, -- Christian Reis, Senior Engin

Re: [pygtk] Bonobo reference problem

2002-11-03 Thread Christian Reis
On Sun, Nov 03, 2002 at 09:23:19PM +0100, Arjan J. Molenaar wrote: > I'm experiencing problems when I try to close a window by pressing the > upper-right close button on the window title bar. > > This small app exposes the bug: > > import pygtk > pygtk.require('2.0') > import gtk, bonobo, bonobo.

[pygtk] Bonobo reference problem

2002-11-03 Thread Arjan J. Molenaar
Hi, I'm experiencing problems when I try to close a window by pressing the upper-right close button on the window title bar. This small app exposes the bug: import pygtk pygtk.require('2.0') import gtk, bonobo, bonobo.ui def init(): window = bonobo.ui.Window ('Title', 'test') window.set

[pygtk] Re: co-exist pygtk 0.6xx and pygtk2 1.99xx?

2002-11-03 Thread Don Radick
--__--__-- Message: 2 Date: Sat, 2 Nov 2002 15:49:46 -0300 From: Christian Reis <[EMAIL PROTECTED]> To: Don Radick <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: [pygtk] co-exist pygtk 0.6xx and pygtk2 1.99xx? On Sat, Nov 02, 2002 at 08:30:07AM -0500, Don Radick wrote: I've downl

Re: [pygtk] libglade, python and gnome widgets: segmentation fault

2002-11-03 Thread Christian Reis
On Thu, Oct 31, 2002 at 08:52:04AM +0800, James Henstridge wrote: > If you want to use gnome widgets in your libglade generated interface, > you must initialise libgnomeui (the same as for C programs). To do > this, the steps are: > import gnome.ui > gnome.init("programname", "version")

Re: [pygtk] libglade, python and gnome widgets: segmentation fault

2002-11-03 Thread Christian Reis
On Wed, Oct 30, 2002 at 03:14:38PM +, Padraig Brady wrote: > Christian Reis wrote: > > On Wed, Oct 23, 2002 at 01:33:25PM +0100, Padraig Brady wrote: > > > >> > GnomeUI-CRITICAL **: file gnome-app.c: line 208 (gnome_app_new): assertion > >>`appname != NULL' failed. > >> > > >> > Gtk-WARNING *

Re: [pygtk] Wrapping gtksourceview

2002-11-03 Thread Christian Reis
On Wed, Oct 30, 2002 at 10:58:11PM +0800, ha shao wrote: > I hope some FAQ (pygtk or python) should include this one. Added 23.10 to the FAQ. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___

Re: [pygtk] Compilation problems

2002-11-03 Thread Christian Reis
On Sun, Nov 03, 2002 at 12:50:31PM -, Graeme 'Grimace' Jefferis wrote: > > *Seems* like an old config.cache left over is thinking that stuff is in > > /usr/local/lib, or the detection is being tricked to thinking stuff is > > in /usr/local/lib - at any rate, it should be possible to specify a >

Re: [pygtk] Compilation problems

2002-11-03 Thread Graeme 'Grimace' Jefferis
Thanks for the suggestion, but, unless I've misunderstood you (you have to spell these things out for me) I've not cracked it yet... From: "Christian Reis" <[EMAIL PROTECTED]> > On Sat, Nov 02, 2002 at 07:40:53PM -, Graeme 'Grimace' Jefferis wrote: > > grep: /usr/local/lib/libglib-2.0.la: No s