[pygtk] Search for paragraph separators in a TextBuffer

2006-05-18 Thread Francesco Marchetti-Stasi
Hello, I wrote a small editor targeted at handhelds, which I used to use on an ipaq and which is now running on a Zaurus. For a bettere use of the higher screen resolution, I need a new simple feature: paragraph justification, where a paragraph is a block of text delimited by empty lines (I

Re: [pygtk] segfault when using gtk.glade.set_custom_handler() on windows

2006-05-18 Thread Johan Dahlin
I guess the segfaults when calling gtk.glade.set_custom_handler() are due to some internal mismatch (perhaps because python and gtk where compiled with different compilers?). But the above should work (as that is the recommended way as far as I could see). And I bet that _some_ people have

[pygtk] Re: segfault when using gtk.glade.set_custom_handler() on windows

2006-05-18 Thread Abel Daniel
Johan Dahlin [EMAIL PROTECTED] writes: Can you put this in bugzilla? It would be great if you can trim down the test case even further, not having a single unnecessary line usually helps us to track the bug down. filed as bug no. 342270 (http://bugzilla.gnome.org/show_bug.cgi?id=342270) I

[pygtk] Asynchronous XML-RPC

2006-05-18 Thread A.M. Kuchling
I need an asynchronous implementation of XML-RPC for a front-end GUI where some of the back-end's operations are slow. Here's what I came up with: a specialized xmlrpclib.Transport that returns an instance of an object called XMLRPCDeferred, and registers The example below is a modified version

Re: [pygtk] Asynchronous XML-RPC

2006-05-18 Thread Johan Dahlin
A.M. Kuchling wrote: I need an asynchronous implementation of XML-RPC for a front-end GUI where some of the back-end's operations are slow. Here's what I came up with: a specialized xmlrpclib.Transport that returns an instance of an object called XMLRPCDeferred, and registers Have you

Re: [pygtk] Asynchronous XML-RPC

2006-05-18 Thread A.M. Kuchling
On Thu, May 18, 2006 at 03:05:50PM -0300, Johan Dahlin wrote: Have you looked at twisted? Yes; I don't want to use it for this application. --amk ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] Asynchronous XML-RPC

2006-05-18 Thread Jarek Zgoda
A.M. Kuchling napisaƂ(a): I need an asynchronous implementation of XML-RPC for a front-end GUI where some of the back-end's operations are slow. Here's what I came up with: a specialized xmlrpclib.Transport that returns an instance of an object called XMLRPCDeferred, and registers The

[pygtk] Handling Control - Shift Key Press Event

2006-05-18 Thread Mystilleef
Hello, I want to handle the (control - shift - s) key press event. So I do the following in my key press event handler: def key_press_event_cb(widget, event): if event.keyval == ord(s): from gtk.gdk import CONTROL_MASK, SHIFT_MASK if event.state