[pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread David Tremouilles
Sorry forgot the attachments Hello, I'm struggling with a memory leakage of my pygtk app for quite some time. Could somebody help me? I join a demo program in attachment. Basically, the final program will open a new notebook tab for each scientific data openned by the user. A close button a la

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread David Tremouilles
Python 2.5.1 GTK: (2, 12, 0) pyGTK: (2, 12, 0) Sorry I forgot to mention the versions. David 2007/9/27, Pádraig Brady [EMAIL PROTECTED]: David Tremouilles wrote: Sorry forgot the attachments Hello, I'm struggling with a memory leakage of my pygtk app for quite some time. Could

[pygtk] colored cell

2007-09-27 Thread John Hunter
I have a gtk.Treeview and I want to format negative numbers in red, as you can do in excel for example. I tried to use pango markup, as in the example below, but was unsuccessful -- what is the best way to do this? import gobject import gtk mydata = [('GOOG', 0.05, -0.025), ('MSFT', 0.1, -0.1),

Re: [pygtk] treeview w/ markup

2007-09-27 Thread John Hunter
On 9/27/07, Yann Leboulanger [EMAIL PROTECTED] wrote: use the column.set_cell_data_func() then in the callback you can set background color of the cell as you wish according to the row Sorry the post was so short -- I accidentally hit send and not save. I just resent the post in it's

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread David Tremouilles
Here is an updated and cleaner version of the leaking code. I do not understand who is keeping a reference to the contents of each on tabs after removing it. David 2007/9/27, David Tremouilles [EMAIL PROTECTED]: Python 2.5.1 GTK: (2, 12, 0) pyGTK: (2, 12, 0) Sorry I forgot to mention the

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread Pádraig Brady
David Tremouilles wrote: Sorry forgot the attachments Hello, I'm struggling with a memory leakage of my pygtk app for quite some time. Could somebody help me? Seems this is not a cycle reference (checked with gc.garbage) but I'm definitely not an expert... What version of python are

Re: [pygtk] treeview w/ markup

2007-09-27 Thread Yann Leboulanger
John Hunter wrote: I have a simple treeview and list store, and want to make certain cell/row combinations red ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

Re: [pygtk] colored cell

2007-09-27 Thread John Stowers
On 9/28/07, John Hunter [EMAIL PROTECTED] wrote: I have a gtk.Treeview and I want to format negative numbers in red, as you can do in excel for example. I tried to use pango markup, as in the example below, but was unsuccessful -- what is the best way to do this? I believe if you use pango