Joey Marshall | 19 Jul 21:22
Picon

*** glibc detected *** python: double free or corruption (fasttop): 0xb601b848 ***

Hello,
I would really really really appreciate some incite into this traceback. It seems to happen randomly (and my app crashes):

*** glibc detected *** python: double free or corruption (fasttop): 0xb601b848 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7e33a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7e374f0]
/usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb7bd9c61]
/usr/lib/libgtk-x11-2.0.so.0[0xb76841f2]
/usr/lib/libgobject-2.0.so.0(g_object_set_property+0x403)[0xb7c6ab13]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_column_cell_set_cell_data+0x15d)[0xb785ae4d]
/usr/lib/libgtk-x11-2.0.so.0[0xb785665c]
/usr/lib/libgtk-x11-2.0.so.0[0xb774b8d4]
/usr/lib/libgobject-2.0.so.0[0xb7c62079]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x129)[0xb7c63759]
/usr/lib/libgobject-2.0.so.0[0xb7c7811a]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x617)[0xb7c79947]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb7c79f69]
/usr/lib/libgtk-x11-2.0.so.0[0xb786a667]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x534)[0xb7746004]
/usr/lib/libgdk-x11-2.0.so.0[0xb75a8f33]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_updates+0x134)[0xb75a94a4]
/usr/lib/libgtk-x11-2.0.so.0[0xb7845a11]
/usr/lib/libgtk-x11-2.0.so.0[0xb784e2e2]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_set_cursor_on_cell+0x125)[0xb7853185]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_set_cursor+0x2e)[0xb785322e]
/var/lib/python-support/python2.5/gtk-2.0/gtk/_gtk.so[0xb7a06842]
python(PyEval_EvalFrameEx+0x5d13)[0x80c9993]
python(PyEval_EvalCodeEx+0x6e7)[0x80cb0d7]
python[0x8113430]
python(PyObject_Call+0x27)[0x805cb37]
python[0x8062b9b]
python(PyObject_Call+0x27)[0x805cb37]
python(PyEval_CallObjectWithKeywords+0x6c)[0x80c2d7c]
python(PyObject_CallObject+0x20)[0x805cfe0]
/var/lib/python-support/python2.5/gtk-2.0/gobject/_gobject.so[0xb7cb3afb]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x129)[0xb7c63759]
/usr/lib/libgobject-2.0.so.0[0xb7c77f8b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8ef)[0xb7c79c1f]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb7c79f69]
/usr/lib/libgtk-x11-2.0.so.0[0xb784e2d3]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_set_cursor_on_cell+0x125)[0xb7853185]
/usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_set_cursor+0x2e)[0xb785322e]
/var/lib/python-support/python2.5/gtk-2.0/gtk/_gtk.so[0xb7a06842]
python(PyEval_EvalFrameEx+0x5d13)[0x80c9993]
python(PyEval_EvalCodeEx+0x6e7)[0x80cb0d7]
python(PyEval_EvalFrameEx+0x565e)[0x80c92de]
python(PyEval_EvalCodeEx+0x6e7)[0x80cb0d7]
python[0x81133bb]
python(PyObject_Call+0x27)[0x805cb37]
python(PyEval_EvalFrameEx+0x4064)[0x80c7ce4]
python(PyEval_EvalFrameEx+0x5945)[0x80c95c5]
python(PyEval_EvalFrameEx+0x5945)[0x80c95c5]
python(PyEval_EvalCodeEx+0x6e7)[0x80cb0d7]
python[0x8113430]
python(PyObject_Call+0x27)[0x805cb37]
python[0x8062b9b]
python(PyObject_Call+0x27)[0x805cb37]
python(PyEval_CallObjectWithKeywords+0x6c)[0x80c2d7c]
python[0x80f59a8]
/lib/tls/i686/cmov/libpthread.so.0[0xb7f4a4fb]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7e9ee5e]
======= Memory map: ========
08048000-08140000 r-xp 00000000 08:01 13214301   /usr/bin/python2.5
08140000-08165000 rw-p 000f7000 08:01 13214301   /usr/bin/python2.5
08165000-08d2a000 rw-p 08165000 00:00 0          [heap]
b6000000-b606c000 rw-p b6000000 00:00 0
b606c000-b6100000 ---p b606c000 00:00 0
b6120000-b61a7000 r--p 00000000 08:01 13346405   /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b61a7000-b61ad000 r-xp 00000000 08:01 13295755   /usr/lib/python2.5/lib-dynload/array.so
b61ad000-b61af000 rw-p 00006000 08:01 13295755   /usr/lib/python2.5/lib-dynload/array.so
b61af000-b6214000 r-xp 00000000 08:01 13295777   /usr/lib/python2.5/lib-dynload/unicodedata.so
b6214000-b6223000 rw-p 00065000 08:01 13295777   /usr/lib/python2.5/lib-dynload/unicodedata.so
b6223000-b6224000 ---p b6223000 00:00 0
b6224000-b6a24000 rw-p b6224000 00:00 0
b6a24000-b6a84000 rw-s 00000000 00:09 4194324    /SYSV00000000 (deleted)
b6a84000-b6a88000 r-xp 00000000 08:01 13238608   /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b6a88000-b6a89000 rw-p 00003000 08:01 13238608   /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b6a89000-b6b34000 r--p 00000000 08:01 13436981   /usr/share/icons/Tangerine/icon-theme.cache
b6b34000-b6b36000 r-xp 00000000 08:01 13289695   /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6b36000-b6b37000 rw-p 00001000 08:01 13289695   /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6b37000-b6bc8000 r--p 00000000 08:01 13346406   /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b6bc8000-b6bce000 r--s 00000000 08:01 1344278    /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2
b6bce000-b6bd1000 r--s 00000000 08:01 1344443    /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2
b6bd1000-b6bd2000 r--s 00000000 08:01 1344442    /var/cache/fontconfig/c69f04ab05004e31a6d5e715764f16d8-x86.cache-2
b6bd2000-b6bd3000 r--s 00000000 08:01 1344441    /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2
b6bd3000-b6bd6000 r--s 00000000 08:01 1344440    /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2
b6bd6000-b6bdd000 r--s 00000000 08:01 1344439    /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2
b6bdd000-b6be0000 r--s 00000000 08:01 1344438    /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2
b6be0000-b6be8000 r--s 00000000 08:01 1344437    /var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86.cache-2
b6be8000-b6bf0000 r--s 00000000 08:01 1344436    /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86.cache-2
b6bf0000-b6bf1000 r--s 00000000 08:01 1344435    /var/cache/fontconfig/9451a55048e8dbe8633e64d34165fdf2-x86.cache-2
b6bf1000-b6bf2000 r--s 00000000 08:01 1344434    /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-x86.cache-2
b6bf2000-b6c14000 r--s 00000000 08:01 1344433    /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-x86.cache-2
b6c14000-b6c17000 r--s 00000000 08:01 1344432    /var/cache/fontconfig/de9486f0b47a4d768a594cb4198cb1c6-x86.cache-2
b6c17000-b6c1e000 r--s 00000000 08:01 1344431    /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-x86.cache-2
b6c1e000-b6c23000 r--s 00000000 08:01 1344430    /var/cache/fontconfig/105b9c7e6f0a4f82d8c9b6e39c52c6f9-x86.cache-2
b6c23000-b6c29000 r--s 00000000 08:01 1344157    /var/cache/fontconfig/089dead882dea3570ffc31a9898cfb69-x86.cache-2
b6c29000-b6c2b000 r--s 00000000 08:01 1344192    /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-x86.cache-2
b6c2b000-b6c3c000 r-xp 00000000 08:01 13239062   /usr/lib/gtk-2.0/2.10.0/engines/libglide.so
b6c3c000-b6c3d000 rw-p 00010000 08:01 13239062   /usr/lib/gtk-2.0/2.10.0/engines/libglide.so
b6c3d000-b6c41000 r-xp 00000000 08:01 13297835   /usr/lib/python2.5/lib-dynload/collections.so
b6c41000-b6c42000 rw-p 00004000 08:01 13297835   /usr/lib/python2.5/lib-dynload/collections.so
b6c42000-b6c46000 r-xp 00000000 08:01 13295771   /usr/lib/python2.5/lib-dynload/strop.so
b6c46000-b6c48000 rw-p 00004000 08:01 13295771   /usr/lib/python2.5/lib-dynload/strop.so
b6c48000-b6c53000 r-xp 00000000 08:01 13295749   /usr/lib/python2.5/lib-dynload/_socket.so
b6c53000-b6c56000 rw-p 0000a000 08:01 13295749   /usr/lib/python2.5/lib-dynload/_socket.so
b6c56000-b6d80000 r-xp 00000000 08:01 2793473    /usr/lib/i686/cmov/libcrypto.so.0.9.8
b6d80000-b6d95000 rw-p 00129000 08:01 2793473    /usr/lib/i686/cmov/libcrypto.so.0.9.8
b6d95000-b6d98000 rw-p b6d95000 00:00 0
b6d98000-b6dd6000 r-xp 00000000 08:01 2793474    /usr/lib/i686/cmov/libssl.so.0.9.8
b6dd6000-b6dda000 rw-p 0003d000 08:01 2793474    /usr/lib/i686/cmov/libssl.so.0.9.8
b6dda000-b6ef3000 r-xp 00000000 08:01 13215871   /usr/lib/libxml2.so.2.6.31
b6ef3000-b6ef8000 rw-p 00119000 08:01 13215871   /usr/lib/libxml2.so.2.6.31
b6ef8000-b6ef9000 rw-p b6ef8000 00:00 0
b6ef9000-b6f10000 r-xp 00000000 08:01 13215345   /usr/lib/libglade-2.0.so.0.0.7
b6f10000-b6f11000 rw-p 00016000 08:01 13215345   /usr/lib/libglade-2.0.so.0.0.7
b6f11000-b6f12000 r-xp 00000000 08:01 13297836   /usr/lib/python2.5/lib-dynload/_bisect.so
b6f12000-b6f13000 rw-p 00001000 08:01 13297836   /usr/lib/python2.5/lib-dynload/_bisect.so
b6f13000-b6f16000 r-xp 00000000 08:01 13295753   /usr/lib/python2.5/lib-dynload/cStringIO.so
b6f16000-b6f17000 rw-p 00003000 08:01 13295753   /usr/lib/python2.5/lib-dynload/cStringIO.so
b6f17000-b6f1a000 r-xp 00000000 08:01 13297853   /usr/lib/python2.5/lib-dynload/_ssl.so
b6f1a000-b6f1b000 rw-p 00003000 08:01 13297853   /usr/lib/python2.5/lib-dynload/_ssl.so
b6f1b000-b6f1e000 r-xp 00000000 08:01 13295759   /usr/lib/python2.5/lib-dynload/fcntl.so
b6f1e000-b6f1f000 rw-p 00003000 08:01 13295759   /usr/lib/python2.5/lib-dynload/fcntl.so
b6f1f000-b6f21000 r-xp 00000000 08:01 13295747   /usr/lib/python2.5/lib-dynload/_random.so
b6f21000-b6f22000 rw-p 00002000 08:01 13295747   /usr/lib/python2.5/lib-dynload/_random.so
b6f22000-b6f25000 r-xp 00000000 08:01 13295765   /usr/lib/python2.5/lib-dynload/math.so
b6f25000-b6f26000 rw-p 00002000 08:01 13295765   /usr/lib/python2.5/lib-dynload/math.so
b6f26000-b6f29000 r-xp 00000000 08:01 13295775   /usr/lib/python2.5/lib-dynloadAborted



Thanks in advance!
Joey
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Richie Ward | 19 Jul 14:28
Picon

Serialize a TreeStore

I need to serialize a TreeStore. I tried to use pickle with no luck.
Is there a nice clean way that I can achieve this?
The reason I want this is so that I can save all the data in my
program, so I can load it all next time its ran.

--

-- 
Thanks, Richie Ward
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

renaud blanch | 17 Jul 21:55
Picon

building pyobject-2.15.1 on MacOsX 10.5.4

Hi list,
while building pyobject (2.15.1) on the mac, the link fails with the following stage :

gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/_gio.so -bundle  .libs/_gio_la-giomodule.o .libs/_gio_la-pygio-utils.o .libs/_gio_la-gio.o  -L/usr/local/lib /usr/local/lib/libgio-2.0.dylib /usr/lib/libiconv.dylib /usr/lib/libc.dylib /usr/local/lib/libgobject-2.0.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib
ld: duplicate symbol __PyGObject_API in .libs/_gio_la-pygio-utils.o and .libs/_gio_la-giomodule.o

first (minor) problem :
the variable ${wl} is not substituted in the comman.
this looks like a libtool issue, and does not seam to make the build fail.

second problem :
the duplicate __PyGObject_API symbol found at link time.

adding the line
#define NO_IMPORT_PYGOBJECT
before the
#include "pygobject.h"
in gio/pygio-utils.h

solved the compilation problem BUT then "make check" report another problem :
Making check in tests
make  check-local
testhelper could not be imported: could not import gobject (error was: 'dlopen(../gobject/.libs/_gobject.so, 2): Symbol not found: _PyGBoxed_Type\n  Referenced from: /Users/Shared/src/pygobject-2.15.1/gobject/.libs/_gobject.so\n  Expected in: flat namespace\n')
make[2]: *** [check-local] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

any hints ?

thanks,
renaud

_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Johan Dahlin | 17 Jul 17:19
Picon

[Fwd: Re: pygobject-2.14.2 on mac osx]


-------- Original Message --------
Subject: Re: [pygtk] pygobject-2.14.2 on mac osx
Date: Thu, 17 Jul 2008 07:34:53 -0700
From: Robert Baertsch <baertsch <at> soe.ucsc.edu>
To: Johan Dahlin <johan <at> gnome.org>
References: <869A8404-4005-4961-AC2B-CF4A9FB3C9E1 <at> soe.ucsc.edu> 
<cc2cd2010807170102y1d45d47ei3062db3e6095cc8f <at> mail.gmail.com>

I installed libtool 2.2.4 and got the same error on
pygobject-2.14.2.  I was able to compile an older build 2.10.1

  I can tried an older versions of pygtk (2.8) since 2.12 requires a
newer version of pygobject.

But got
Could not write virtual accessor method GtkObject.set_arg: No ArgType
for 'GtkArg*'
Could not write virtual accessor method GtkObject.get_arg: No ArgType
for 'GtkArg*'
Could not write virtual proxy GtkObject.set_arg: No ArgType for
'GtkArg*'
Could not write virtual proxy GtkObject.get_arg: No ArgType for
'GtkArg*'
....

On the other hand, my goal is matplotlib so perhaps I should be using
a different backend on osx until you guys add explicity support.
-Robert
On Jul 17, 2008, at 1:02 AM, Johan Dahlin wrote:

> [and a copy to the list]
>
> On Wed, Jul 16, 2008 at 8:37 PM, Robert Baertsch  
> <baertsch <at> soe.ucsc.edu> wrote:
>> I'm trying to build pygobject on osx 10.4 using gcc 4.0.1 after
>> building:
>> cairo-1.6.4
>> pango-1.21.3
>> gtk+-2.12.2
>> glib-2.16.4
>> atk-1.22.0
>>
>> I had to edit libtool to remove the ${wl} symbol before -undefined
>> dynamic_lookup, it was causing a syntax error with gcc.
>> I also had to force -export-symbols-list .libs/_gobject-
>> symbols.expsym  since -export-symbols-regex is not supported.
>>
>> I'm getting the following error:
>
> Looks like a libtool bug. Are you using the latest version of libtool?
>
> Johan
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Robert Baertsch | 16 Jul 20:33
Favicon

pygobject-2.14.2 on mac osx

I'm trying to build pygobject on osx 10.4 using gcc 4.0.1 after  
building:
cairo-1.6.4
pango-1.21.3
gtk+-2.12.2
glib-2.16.4
atk-1.22.0

I had to edit libtool to remove the ${wl} symbol before -undefined  
dynamic_lookup, it was causing a syntax error with gcc.
I also had to force -export-symbols-list .libs/_gobject- 
symbols.expsym  since -export-symbols-regex is not supported.

I'm getting the following error:

/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall -fno-strict-aliasing  
-std=c9x   -o _gobject.la -rpath /usr/local/lib/python2.5/site- 
packages/gtk-2.0/gobject -module -avoid-version  -export-symbols- 
list .libs/_gobject-symbols.expsym  _gobject_la-gobjectmodule.lo  
_gobject_la-pygboxed.lo _gobject_la-pygenum.lo _gobject_la- 
pygflags.lo _gobject_la-pygobject.lo _gobject_la-pygmaincontext.lo  
_gobject_la-pygmainloop.lo _gobject_la-pygparamspec.lo _gobject_la- 
pygpointer.lo _gobject_la-pygiochannel.lo _gobject_la-pygsource.lo  
_gobject_la-pygtype.lo _gobject_la-pygoptioncontext.lo _gobject_la- 
pygoptiongroup.lo  -L/usr/local/lib -lgobject-2.0 -lgthread-2.0 - 
lglib-2.0 -lintl -liconv
gcc -undefined dynamic_lookup -o .libs/_gobject.so -bundle  .libs/ 
_gobject_la-gobjectmodule.o .libs/_gobject_la-pygboxed.o .libs/ 
_gobject_la-pygenum.o .libs/_gobject_la-pygflags.o .libs/_gobject_la- 
pygobject.o .libs/_gobject_la-pygmaincontext.o .libs/_gobject_la- 
pygmainloop.o .libs/_gobject_la-pygparamspec.o .libs/_gobject_la- 
pygpointer.o .libs/_gobject_la-pygiochannel.o .libs/_gobject_la- 
pygsource.o .libs/_gobject_la-pygtype.o .libs/_gobject_la- 
pygoptioncontext.o .libs/_gobject_la-pygoptiongroup.o  -L/usr/local/ 
lib /usr/local/lib/libgobject-2.0.dylib /usr/lib/libc.dylib /usr/ 
local/lib/libgthread-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/ 
local/lib/libintl.dylib /usr/lib/libiconv.dylib
dsymutil .libs/_gobject.so || :
ERROR: No debug map or DWARF data was found to link.creating _gobject.la

-Robert Baertsch
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Seth Mahoney | 16 Jul 23:02
Picon
Favicon

Cancel editing on a gtk.CellRendererText

Hi,

I've got a TreeView that displays different kinds of data - basically book citations and plain text - in a sort of outline format.  I'd like the plain text to be editable, and the book citations to be noneditable, but I can't seem to figure out how to cancel editing.  The first column of my TreeModel contains the text to be displayed, and the second column contains xml data, which isn't displayed, but is used for a variety of purposes, including identifying the type of data.  The callback correctly prints "called!" when I try to edit a citation, but doesn't cancel the edit.  I've also tried calling editing_canceled(), but that doesn't work either.  Here's what my callback, connected to "editing-started", looks like right now:

    def outline_edit_start_cb(self, cell, editable, path, model):
        my_iter = model.get_iter_from_string(path)
        if model.get_value(my_iter, 1).tag == "cite":
            print "called!"   
            cell.stop_editing(True)
            return True
        return False

Any help would be appreciated.


_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Johan Dahlin | 16 Jul 10:36
Picon
Favicon

ANNOUNCE: PyGObject 2.15.1

I am pleased to announce version 2.15.1 of the Python bindings for GObject.

The new release is available from ftp.gnome.org as and its mirrors
as soon as its synced correctly:

   http://download.gnome.org/sources/pygobject/2.15/

There are two new significant features in this release series, initial
bindings for GIO. Note that these are not complete, please report
missing API in Bugzilla so we know what people are missing.
Codegen has been moved from PyGTK and can now be used without
depending on GTK+, which should be useful for GObject based libraries.

What's new since PyGObject 2.15.1?
         - Rename pygtk-codegen-2.0 to pygobject-codegen-2.0 to avoid
           conflicting with PyGTK (Paul Pogonyshev)

Blurb:

GObject is a object system library used by GTK+ and GStreamer.

PyGObject provides a convenient wrapper for the GObject+ library for use
in Python programs, and takes care of many of the boring details such as
managing memory and type casting.  When combined with PyGTK, PyORBit and
gnome-python, it can be used to write full featured Gnome applications.

Like the GObject library itself PyGObject is licensed under the
GNU LGPL, so is suitable for use in both free software and proprietary
applications.  It is already in use in many applications ranging
from small single purpose scripts up to large full
featured applications.

PyGObject requires glib >= 2.8.0 and Python >= 2.3.5 to build.
GIO bindings require glib >= 2.16.0.

--
Johan Dahlin
jdahlin <at> async.com.br
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Shadi Azoum | 15 Jul 18:23
Picon
Favicon

Glade - Custom Images on Buttons

Hi,

In Glade, I am trying to add custom images to buttons, but am not sure how. Any advice or pointers.
Thanks in advance.
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Johan Dahlin | 15 Jul 00:32
Picon

ANNOUNCE: PyGObject 2.15.0

I am pleased to announce version 2.15.0 of the Python bindings for GObject.

The new release is available from ftp.gnome.org as and its mirrors
as soon as its synced correctly:

   http://download.gnome.org/sources/pygobject/2.15/

There are two new significant features in this release, initial
bindings for GIO. Note that these are not complete, please report
missing API in Bugzilla so we know what people are missing.
Codegen has been moved from PyGTK and can now be used without
depending on GTK+, which should be useful for GObject based libraries.

What's new since PyGObject 2.14.x?
         - Add GIO bindings (Johan, Mario Tagliaretti, Thomas Leonard)
	- Move codegen from PyGTK (Johan, Paul Pogonyshev, #542821)
	- Add more variables to the .pc files (Damien Carbery, Paul,
           Dan Winship, #486876)
	- Add pyg_option_group_new to the public API (Johan)
	- Add g_get_application_anme and g_get_progname (Sebastian Rittau)
	- Avoid making wakeups when using Python 2.6 (Johan, Gustavo,
	  Adam Olsen, Josselin Mouette, Philippe Normand, Guido Van Rossum)
	- Only link against libffi when found (Ed Catmur, #496006)
	- Improve gobject.property (Tomeu Vizoso, #523352)
	- Improve enum comparision and warnings (Paul, Phil Dumont, #428732)
	- Many gobject.Source improvements (Bryan Silverthorn)
	- Apply some fixes to make pylint happier (Johan, Simon Schampijer,
	  #523821)
	- Fix error message in pyg_io_add_watch (Juha Sahkangas)
	- Improve h2def.py (Oliver Crete, Murray Cumming, Lauro Moura)

Blurb:

GObject is a object system library used by GTK+ and GStreamer.

PyGObject provides a convenient wrapper for the GObject+ library for use
in Python programs, and takes care of many of the boring details such as
managing memory and type casting.  When combined with PyGTK, PyORBit and
gnome-python, it can be used to write full featured Gnome applications.

Like the GObject library itself PyGObject is licensed under the
GNU LGPL, so is suitable for use in both free software and proprietary
applications.  It is already in use in many applications ranging
from small single purpose scripts up to large full
featured applications.

PyGObject requires glib >= 2.8.0 and Python >= 2.3.5 to build.
GIO bindings require glib >= 2.16.0.

--
Johan Dahlin
jdahlin <at> async.com.br
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Frédéric | 14 Jul 11:36

Glade and GtkComboBox

I found this old post, without answer:

> Hello everyone, I'm new to DaniWeb and a sort of beginner at Python. I've
> created a GUI in Python using Glade and GTK and I have two questions. I'm
> having trouble with comboboxes. Particularly with entering data into a 
> combo box from Python. I've tried the following....
> 
> myCombo = self.wTree.get_widget('comboboxentry') 
> myCombo.append_text('blah blah blah') 
> 
> to no avail... apparently you have to first do gtk.combo_box_new_text() 
> before you can append text. Is this possible when using Glade to
> construct my GUI?

Does anybody have a solution to that problem?

Thanks,

--

-- 
    Frédéric

    http://www.gbiloba.org
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

refreshing gtk.IconView

hi all,
im trying write simple app for viewing my photo collection.
and now i have little problem. I want update IconView after
every
single loaded photo and not update after all photos loaded.
here`s source

from __future__ import with_statement
import threading
import gtk
import os   
gtk.gdk.threads_init()

class app(gtk.Window):
    def __init__(self):
        gtk.Window.__init__(self)
        self.set_title("spoView")
        self.set_default_size(400, 500)
        self.connect("destroy", gtk.main_quit)

        scroll = gtk.ScrolledWindow()
        scroll.set_border_width(2)
        scroll.set_shadow_type(gtk.SHADOW_ETCHED_IN)
        scroll.set_policy(gtk.POLICY_AUTOMATIC,
gtk.POLICY_AUTOMATIC)

        thumb_view = gtk.IconView()
        model = gtk.ListStore(str, gtk.gdk.Pixbuf)
        thumb_view.set_model(model)
        thumb_view.set_text_column(0)
        thumb_view.set_pixbuf_column(1)
        thumb_view.set_columns(4)

        vbox = gtk.VBox()
        status = gtk.Statusbar()

        scroll.add(thumb_view)
        vbox.pack_start(scroll, True, True)
        vbox.pack_start(status, False, False)
        self.add(vbox)
        self.show_all()

        files = os.listdir("/home/spooky/Pictures/100_FUJI")
        thread = threading.RLock()
        with thread:
            for image in files:
                pixbuf =
gtk.gdk.pixbuf_new_from_file_at_size("/home/spooky/Pictures/100_FUJI/%s"
% image, 96, 96)
                model.append([image, pixbuf])

        status.push(0, "%s files loaded." % len(files))

a = app()
gtk.main()

thanks for your help.
_______________________________________________
pygtk mailing list   pygtk <at> daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Gmane