[pygtk] Subclassing gtk.ToolItem

2008-04-24 Thread zsolt foldvari
I'm trying to subclass gtk.ToolItem to include a custom widget into it. Now, when I tried to override the gtk.ToolItem.set_tooltip() method python crashes with: python: Objects/stringobject.c:107: PyString_FromString: Assertion `str != ((void *)0)' failed. Any idea what am I doing wrong? Cheers

Re: [pygtk] Subclassing gtk.ToolItem

2008-04-24 Thread Douglas S. Blank
> I'm trying to subclass gtk.ToolItem to include a custom widget into it. > > Now, when I tried to override the gtk.ToolItem.set_tooltip() method > python crashes with: > > python: Objects/stringobject.c:107: PyString_FromString: Assertion > `str != ((void *)0)' failed. > > Any idea what am I doing

[pygtk] Pygtk does not play nicely with speech-dispatcher

2008-04-24 Thread James Simmons
I have been working on a Pygtk pgrogram for the OLPC project which is a reading program for Project Gutenberg Etexts. Several people on the OLPC mailing list suggested enhancing it to work with speech-dispatcher so that the program could read the texts aloud, at the same time highlighting the

[pygtk] drap-and-drop between pygtk apps and Explorer.exe

2008-04-24 Thread TK Soh
Greeting. I've been researching for awhile now, but couldn't find any useful info on the topic mentioned. I'd like to let user drag some files from the their Desktop or any folders into my PyGTK applications for further processing. I'd really appreciate if anyone can help show me to the right pla

Re: [pygtk] Pygtk does not play nicely with speech-dispatcher

2008-04-24 Thread James Simmons
Dave, This is an abridged version of the code, concentrating on the important parts. Basically the gtk.TextView contains one page of the Etext, and the user presses the space key to start speech dispatcher going on the text. The words are spoken correctly, but the callbacks that *should* be

[pygtk] python-gtkhtml2 docs

2008-04-24 Thread Mitko Haralanov
Hi, does anyone know of any useful documentation, API, turorials, examples of python-gtkhtml2. I can't seem to find anything useful. Thanx -- Mitko Haralanov == panic("sun_82072_fd_inb: How did I get here?"); 2.2.16 /usr/src/linux/include/asm-spar

[pygtk] MenuBar items

2008-04-24 Thread Andrea Caminiti
hi guys: i'm still doing my program and i would like to have a menu bar as every program has (file, edit, ., help). and a lot of doubts came to my mind. looking at pygtk tuttorials i found so good examples to follow using gtk.Menubar, gtk.Menu, etc... but seem that this methods are not sugg

Re: [pygtk] Pygtk does not play nicely with speech-dispatcher

2008-04-24 Thread Michael Urman
On Thu, Apr 24, 2008 at 1:16 PM, James Simmons <[EMAIL PROTECTED]> wrote: > The words are spoken correctly, but the callbacks that *should* be invoked > after each word never happen. I see no sign of a call to gtk.gdk.threads_init() or whatever the current preferred alternative is. Without a call