Re: [pygtk] thread deaths from garbage collected gtk.ListStores

2004-02-27 Thread Gustavo J. A. M. Carneiro
A Seg, 2004-02-23 às 13:14, Graham Carlyle escreveu: > I've been getting python thread deaths in an application which uses gtk > ListStores that maintain references to python objects. > > isolated the problem to this example code: > -- > import pygtk > pygtk.require("2.0") > import gc > import gob

[pygtk] FAQ 18.8: What basic pattern should I follow when using a DrawingArea?

2004-02-27 Thread Christian Robottom Reis
Was added describing the basic usage pattern to follow when using a DrawingArea based on gjc and jdhunter's replies to the list. If anyone would like to review it, I'd appreciate the effort. http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq18.008.htp Take care, -- Christian Robott

Re: [pygtk] memory leak somewhere

2004-02-27 Thread Arturo Gonzalez
El vie, 27-02-2004 a las 14:32, -0300, Christian Robottom Reis escribió: On Tue, Feb 17, 2004 at 11:15:52AM +, Gustavo J. A. M. Carneiro wrote: > A Ter, 2004-02-17 às 00:49, Arturo González escreveu: > > I'm having a memory leak somewhere when refreshing the content of a > > HBox. I'm not

Re: [pygtk] thread deaths from garbage collected gtk.ListStores

2004-02-27 Thread Christian Robottom Reis
On Fri, Feb 27, 2004 at 06:05:09PM +, Gustavo J. A. M. Carneiro wrote: > A Sex, 2004-02-27 às 13:22, Christian Robottom Reis escreveu: > > On Mon, Feb 23, 2004 at 01:14:36PM +, Graham Carlyle wrote: > > > -- > > > import pygtk > > > pygtk.require("2.0") > > > import gc > > > import gobject

Re: [pygtk] thread deaths from garbage collected gtk.ListStores

2004-02-27 Thread Gustavo J. A. M. Carneiro
A Sex, 2004-02-27 às 13:22, Christian Robottom Reis escreveu: > On Mon, Feb 23, 2004 at 01:14:36PM +, Graham Carlyle wrote: > > -- > > import pygtk > > pygtk.require("2.0") > > import gc > > import gobject > > import gtk > > > > class Foo: > > pass > > > > list_store = gtk.ListStore(gobje

Re: [pygtk] memory leak somewhere

2004-02-27 Thread Christian Robottom Reis
On Tue, Feb 17, 2004 at 11:15:52AM +, Gustavo J. A. M. Carneiro wrote: > A Ter, 2004-02-17 às 00:49, Arturo González escreveu: > > I'm having a memory leak somewhere when refreshing the content of a > > HBox. I'm not doing it in a optimized way, i know, but i want to find > > where is the error

Re: [pygtk] key_release_event of the mod1 ("alt") key does not work

2004-02-27 Thread Lorenzo Gil Sanchez
I tested your code in my system: Windows 2000 Python 2.2 PyGTK 2.0.0 and I got some odd behaviours: - On Windows my right alt key produces the left alt key keyval in the release callback. - On Windows I don't get left alt key release events - On Windows for some keys if I left them pressed for

Re: [pygtk] Reference Update

2004-02-27 Thread Christian Robottom Reis
On Sun, Feb 08, 2004 at 02:15:49PM +, Johannes Jordens wrote: > Just something I noticed: In the reference to gtk.MessageDialog > (http://www.pygtk.org/pygtk2reference/class-gtkmessagedialog.html) it is > stated that gtk.DIALOG_NO_SEPARATOR is a valid flag for the dialogue. > However, when I tr

Re: [pygtk] removing keybindings

2004-02-27 Thread Christian Robottom Reis
On Fri, Feb 13, 2004 at 09:28:11PM +0100, Abel Daniel wrote: > I would like to make my app to have modes, a bit like the vi > editor. Launching a mode would change some keybindings. I figured I > can add the keybindings with gtk.binding_entry_add_signal() when the > mode is started, but the problem

Re: [pygtk] key_release_event of the mod1 ("alt") key does not work

2004-02-27 Thread Martin . Zohlhuber
I test again with your code and found out, in combination with another key like a accelerator/shortcut (e.g."ALT"+Q) i get a release event from both keys (113, 65513), but from "ALT" alone i get no callback. martin -- import gtk def foo(widget, event): print wid

Re: [pygtk] pygtk2.0 Install problem on mandrake 9.1

2004-02-27 Thread Christian Robottom Reis
On Sun, Feb 22, 2004 at 12:28:57AM -0800, katrin schenk wrote: > libgtk+2.0_0-devel-2.2.1-2mdk) when I try to run the pygtk2.0 configure > script it gives me the following error: > > checking for GTK+ - version >= 2.0.0... no > *** Could not run GTK+ test program, chec

Re: [pygtk] thread deaths from garbage collected gtk.ListStores

2004-02-27 Thread Christian Robottom Reis
On Mon, Feb 23, 2004 at 01:14:36PM +, Graham Carlyle wrote: > -- > import pygtk > pygtk.require("2.0") > import gc > import gobject > import gtk > > class Foo: > pass > > list_store = gtk.ListStore(gobject.TYPE_PYOBJECT) > list_store.prepend((Foo(),)) > gtk.threads_init() > list_store = N

Re: [pygtk] key_release_event of the mod1 ("alt") key does not work

2004-02-27 Thread Christian Robottom Reis
On Wed, Feb 25, 2004 at 04:39:37PM +0100, [EMAIL PROTECTED] wrote: > I want select first item of the menubar, if "Alt" (in gtk named mod1; i do > not mean Alt Gr) released. I connect the key-release-event and it work > for all other keys, but not for Mod1. For Mod1 i get only the keypressed > e

Re: [pygtk] RH9 and PyUnicodeUCS2_FromUnicode undefined symbol

2004-02-27 Thread Christian Robottom Reis
On Wed, Feb 25, 2004 at 08:42:32AM +0100, eric moors wrote: > File "/usr/lib/python2.2/ihooks.py", line 172, in load_dynamic >return imp.load_dynamic(name, filename, file) > ImportError: /usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtk.so: undefined > symbol: PyUnicodeUCS2_FromUnicode I've r

Re: [pygtk] gnome-python and suse 9.0

2004-02-27 Thread Christian Robottom Reis
On Thu, Feb 26, 2004 at 10:09:09PM +0100, Tom Cato Amundsen wrote: > Has anyone ran gnome-python on suse 9.0? One user of Solfege is trying > to install solfege on a fresh suse 9.0 box, and he get this error > message: > > Traceback (most recent call last): > File "/usr/local/bin/solfege", line