[pygtk] TreeModelSort patch

2003-10-25 Thread Don Allingham
I think I may have found the problem with the gtk.TreeModelSort. The error message that was returned by pygtk indicated that a NULL iter was the problem. However, NULL is a valid argument that the function can receive. The attached patch removes the check for a NULL iter, and makes sure that if a

Re: [pygtk] TextView width depending on maximum number of character per line

2003-10-25 Thread Christian Robottom Reis
On Fri, Oct 24, 2003 at 04:21:47PM +0800, James Henstridge wrote: > >I need a TextView that changes its width depending on the maximum number > >of characters per line that the user wants it to have. I need that the > >user be able to configure it to have between a number of characters per > >line

[pygtk] gnome canvas bpath usage ?

2003-10-25 Thread Leif Johnson
Hi all - I've just joined this list after hacking with PyGTK for a few months ; I hope I don't muss up this first post ! :) I'd like to give a big thanks to all the PyGTK developers. This package totally rocks. So, I have a question about using gnome.canvas.CanvasBpath ; I'm trying to play around

Re: [pygtk] Re: creating new signals and keybindings in subclassed widgets

2003-10-25 Thread Christian Robottom Reis
On Sat, Oct 25, 2003 at 02:18:03PM +0200, Abel Daniel wrote: > Well, adding gobject.SIGNAL_ACTION to the signal's flags made that go > away. (And in the C code for treeview similar signals, like > 'move-cursor' are created with those flags so I guess that's the way > to do it.) Added this discuss

[pygtk] Tutorial entry for gtk.Plug and gtk.Socket

2003-10-25 Thread Nathan Hurst
Hi John, Hi list, I'm not sure what format you want so I've left it essentially text, with a few HTML markups to make things clearer. I can't get socket.steal to work reliably, so I haven't demonstrated that. If anyone on pygtk knows how I could reliably embed say an xterm I'd be most grateful

[pygtk] Re: creating new signals and keybindings in subclassed widgets

2003-10-25 Thread Abel Daniel
Lorenzo Gil Sanchez writes: > > Try changing the __init__ method to: > > def __init__(self, model, *a, **kw): > self.__gobject_init__() > self.set_model(model) > Gee, thanks a lot, that helped. > Anyway, I run into other problem: when I type CTRL+Up the signal is > emitted b

Re: [pygtk] creating new signals and keybindings in subclassed widgets

2003-10-25 Thread Lorenzo Gil Sanchez
Hi, (sorry for the format but on weekends I have to use horrible webmail) >Apparently this is my problem. If I call gtk.TreeView.__init__, >nothing happens, and the new signal is not usable (Control-Up >does the >same as Up in itself, and if I try to emit the signal with >treeview.emit(...) I get